Enable more warnings (except for chipmunk)
This commit is contained in:
parent
c9635ed766
commit
2f102ac242
|
|
@ -97,6 +97,10 @@ function NazaraBuild:Execute()
|
||||||
files(libTable.Files)
|
files(libTable.Files)
|
||||||
excludes(libTable.FilesExcluded)
|
excludes(libTable.FilesExcluded)
|
||||||
|
|
||||||
|
if (libTable.DisableWarnings) then
|
||||||
|
warnings("Off")
|
||||||
|
end
|
||||||
|
|
||||||
defines(libTable.Defines)
|
defines(libTable.Defines)
|
||||||
flags(libTable.Flags)
|
flags(libTable.Flags)
|
||||||
kind("StaticLib") -- Force them as static libs
|
kind("StaticLib") -- Force them as static libs
|
||||||
|
|
@ -812,6 +816,7 @@ function NazaraBuild:PrepareGeneric()
|
||||||
})
|
})
|
||||||
|
|
||||||
cppdialect("C++17")
|
cppdialect("C++17")
|
||||||
|
warnings("Extra")
|
||||||
|
|
||||||
self:FilterLibDirectory("../thirdparty/genlib/", libdirs)
|
self:FilterLibDirectory("../thirdparty/genlib/", libdirs)
|
||||||
self:FilterLibDirectory("../thirdparty/lib/", libdirs)
|
self:FilterLibDirectory("../thirdparty/lib/", libdirs)
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,11 @@ LIBRARY.Defines = {
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBRARY.Language = "C++"
|
LIBRARY.Language = "C++"
|
||||||
|
LIBRARY.DisableWarnings = true -- chipmunk has many warnings we can't really fix
|
||||||
|
|
||||||
LIBRARY.Files = {
|
LIBRARY.Files = {
|
||||||
"../thirdparty/include/chipmunk/*.h",
|
"../thirdparty/include/chipmunk/*.h",
|
||||||
"../thirdparty/src/chipmunk/*.h",
|
"../thirdparty/src/chipmunk/*.h",
|
||||||
"../thirdparty/src/chipmunk/*.c",
|
"../thirdparty/src/chipmunk/*.c",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue