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