From f2036f60f36d2edb415a1f1993b3bb3b085f8042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 4 Apr 2015 19:10:53 -0700 Subject: [PATCH] Enable -Wshadow for GCC. --- scripts/toolchain.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 2d3f081..c89133b 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -403,6 +403,11 @@ function toolchain(_buildDir, _libDir) "NoExceptions", } + configuration { "*-gcc*" } + buildoptions { + "-Wshadow", + } + configuration { "mingw-*" } defines { "WIN32" } includedirs { path.join(bxDir, "include/compat/mingw") }