Enable more warnings (except for chipmunk)

This commit is contained in:
Lynix 2020-02-24 18:48:42 +01:00
parent c9635ed766
commit 2f102ac242
2 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,10 @@ function NazaraBuild:Execute()
files(libTable.Files)
excludes(libTable.FilesExcluded)
if (libTable.DisableWarnings) then
warnings("Off")
end
defines(libTable.Defines)
flags(libTable.Flags)
kind("StaticLib") -- Force them as static libs
@ -812,6 +816,7 @@ function NazaraBuild:PrepareGeneric()
})
cppdialect("C++17")
warnings("Extra")
self:FilterLibDirectory("../thirdparty/genlib/", libdirs)
self:FilterLibDirectory("../thirdparty/lib/", libdirs)

View File

@ -11,9 +11,11 @@ LIBRARY.Defines = {
}
LIBRARY.Language = "C++"
LIBRARY.DisableWarnings = true -- chipmunk has many warnings we can't really fix
LIBRARY.Files = {
"../thirdparty/include/chipmunk/*.h",
"../thirdparty/src/chipmunk/*.h",
"../thirdparty/src/chipmunk/*.c",
}