forked from mirrors/0ad
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user