mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
c12d52b8c3
commit
9381ea50df
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue