From 9381ea50df00092dc0ddf8cf900152a1b8d2120b Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 29 Jul 2025 11:22:33 +0200 Subject: [PATCH] Suppress warnings on old GCC Current GCC doesn't warn here, so add -Wno-stringop-overflow, -Wno-attribute-warning, -Wno-restrict and -Wno-array-bounds to the list of warnings for old GCC. Signed-off-by: Ralph Sennhauser --- build/premake/premake5.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index a9af402080..2e3a32e81f 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -358,10 +358,16 @@ function project_set_build_flags() } filter {} - -- issues with gcc 12 to 14, workaround for CI which sets CC=gcc-12 + -- issues with gcc 12 to 14 with pch enabled, workaround for CI which sets CC=gcc-12 if cc == "gcc-12" then buildoptions { + -- mozilla "-Wno-dangling-pointer", + -- fortify source + "-Wno-stringop-overflow", + "-Wno-attribute-warning", + "-Wno-array-bounds", + "-Wno-restrict", } end