From 37a4b1257f6e8122765de26d2eae5cc9364e655c Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 27 Apr 2019 08:03:43 +0200 Subject: 20190427.1 global branch merge. Signed-off-by: Matteo Bernardini --- office/gbgoffice/patches/12_gcc6.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 office/gbgoffice/patches/12_gcc6.patch (limited to 'office/gbgoffice/patches/12_gcc6.patch') diff --git a/office/gbgoffice/patches/12_gcc6.patch b/office/gbgoffice/patches/12_gcc6.patch new file mode 100644 index 0000000000..2ec2c344f4 --- /dev/null +++ b/office/gbgoffice/patches/12_gcc6.patch @@ -0,0 +1,21 @@ +Description: fixes compilation with GCC-6 + return type must be Translator* and can't be boolean +Author: Damyan Ivanov +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811619 + +--- a/src/translator_manager.cpp ++++ b/src/translator_manager.cpp +@@ -176,11 +176,11 @@ Translator *TranslatorManager::getTestDi + isDataOk = isDataOk && tr->init(tr->BG_EN, string(string(prop->getDirectory()) + prop->getString("data")).c_str()); + } else { + cerr << "TranslatorManager::getTestDictionaryObject - Wrong description file: " << testDictionaries[index].fileName << "\n"; +- return false; ++ return NULL; + } + if (!isDataOk) { + cerr << "TranslatorManager::getTestDictionaryObject - Problem initialazing dictionary: " << testDictionaries[index].fileName << "\n"; +- return false; ++ return NULL; + } + char c[16]; + sprintf(c, "%d", level); -- cgit v1.2.3