forked from mirrors/0ad
Disable dangling-pointer warning whith gcc-12
This is only an issue with gcc-12 to gcc-14, supress the warning on the CI. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -328,6 +328,13 @@ function project_set_build_flags()
|
||||
}
|
||||
filter {}
|
||||
|
||||
-- issues with gcc 12 to 14, workaround for CI which sets CC=gcc-12
|
||||
if cc == "gcc-12" then
|
||||
buildoptions {
|
||||
"-Wno-dangling-pointer",
|
||||
}
|
||||
end
|
||||
|
||||
if not _OPTIONS["without-pch"] then
|
||||
buildoptions {
|
||||
-- do something (?) so that ccache can handle compilation with PCH enabled
|
||||
|
||||
Reference in New Issue
Block a user