From ce52af1a3286bd1f8069fba7240f3e98b50ab7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Mon, 23 May 2022 13:23:42 +0100 Subject: CMake: Disable errors with -Walloc-size-larger-than= This seems to be buggy and have a complicated interaction with the GCC optimizer. Disable hard failures so we can focus on actual issues and deal with dormant false positives when it is convenient. Ping #18089 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 99a7eecb2d..cdd830b6f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -656,6 +656,9 @@ else() # ! MSVC # until these procedural issues can be fixed or at least mitigated. # -Wno-error=maybe-uninitialized + # Disable errors for another warning that is prone to guesswork + # and false positives. + -Wno-error=alloc-size-larger-than= # # Converting from g_printf() and g_snprintf() to stdio.h turns # up many of these warnings. They will have to be handled later. -- cgit v1.2.3