From e72bbb8d41cdf3eec86804afa1a6dd527925be04 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Nov 2021 09:06:03 +0200 Subject: 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 --- i18npool/source/transliteration/transliteration_body.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'i18npool') 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 #include -- cgit