summaryrefslogtreecommitdiffstats
path: root/office/gbgoffice/patches/12_gcc6.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-08-18 09:39:52 +0200
committer Matteo Bernardini2019-08-18 09:39:52 +0200
commit6b4dcc675fdfd2b11080d203d1807cbfab2ce79b (patch)
tree90a301b976acf4d029db86f7aec5dbb14034eae9 /office/gbgoffice/patches/12_gcc6.patch
parentd04189e642ca17186cb9b2b5899fa9c12aceb782 (diff)
downloadslackbuilds-6b4dcc675fdfd2b11080d203d1807cbfab2ce79b.tar.gz
20190818.1 global branch merge.current-20190818.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/gbgoffice/patches/12_gcc6.patch')
-rw-r--r--office/gbgoffice/patches/12_gcc6.patch21
1 files changed, 21 insertions, 0 deletions
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 <dmn@debian.org>
+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);