diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2017-06-01 18:43:37 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:24:30 -0500 |
commit | b3983dcc1037b43d98f6a4e83d06f63dae592300 (patch) | |
tree | 4ad9c9ae2779f4db8363cdc1b38c97979c059168 /office/gbgoffice/patches | |
parent | f6bebc2446392e041527da4088a22369a65b6fbc (diff) |
office/gbgoffice: Added a patch for gcc >= 6.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/gbgoffice/patches')
-rw-r--r-- | office/gbgoffice/patches/12_gcc6.patch | 21 |
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 0000000000000..2ec2c344f4c07 --- /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); |