1
0
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:
Ralph Sennhauser
2025-03-03 21:23:00 +01:00
parent a2fdc3427e
commit 9ef1bff6aa
+7
View File
@@ -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