mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Don't use premake for setting Wextra on Unix
Move -Wall to where the other warnings are enabled so everything is in one place. Fixes: #5329 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -201,8 +201,7 @@ function project_set_build_flags()
|
||||
end
|
||||
sanitize(sanitizers)
|
||||
|
||||
if os.istarget("windows") or not _OPTIONS["minimal-flags"] then
|
||||
-- adds the -Wall compiler flag
|
||||
if os.istarget("windows") then
|
||||
warnings "Extra"
|
||||
end
|
||||
|
||||
@@ -272,6 +271,7 @@ function project_set_build_flags()
|
||||
if not _OPTIONS["minimal-flags"] then
|
||||
buildoptions {
|
||||
-- enable most of the standard warnings
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
-- "-Wconversion", FIXME: should seriously consider fixing so this warning can be enabled.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user