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:
Ralph Sennhauser 2025-06-21 19:04:25 +02:00
parent 24a5b72020
commit 4720033ef9
No known key found for this signature in database

View file

@ -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.