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>
This commit is contained in:
Noel Grandin
2021-11-03 13:51:11 +01:00
parent 7a8cbfafca
commit e72bbb8d41
@@ -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>