summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-02 09:06:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-03 13:51:11 +0100
commite72bbb8d41cdf3eec86804afa1a6dd527925be04 (patch)
treefd03ae0a37ab21e5254c37c4b5d209ac55bd1c6f /i18npool
parent7a8cbfafca1906baad2bcbf8aa6717d197ae423a (diff)
Silence spurious Werror=maybe-uninitialized in transliterateImpl
only seen in optimised build Change-Id: Ibf344efa034feefdc6e03d489a0a6b28461b76e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124581 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index a64c8050bb79..e1fc11a8d70a 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -16,6 +16,10 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+// Silence spurious Werror=maybe-uninitialized in transliterateImpl emitted at least by GCC 11.2.0
+#if defined __GNUC__ && !defined __clang__
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
#include <rtl/ref.hxx>
#include <i18nutil/casefolding.hxx>