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 <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-07-29 11:22:33 +02:00
parent c12d52b8c3
commit 9381ea50df
No known key found for this signature in database

View file

@ -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