Enable -Wshadow for GCC.

This commit is contained in:
Branimir Karadžić
2015-04-04 19:10:53 -07:00
parent 921872ac59
commit f2036f60f3

View File

@@ -403,6 +403,11 @@ function toolchain(_buildDir, _libDir)
"NoExceptions", "NoExceptions",
} }
configuration { "*-gcc*" }
buildoptions {
"-Wshadow",
}
configuration { "mingw-*" } configuration { "mingw-*" }
defines { "WIN32" } defines { "WIN32" }
includedirs { path.join(bxDir, "include/compat/mingw") } includedirs { path.join(bxDir, "include/compat/mingw") }