summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index e651f842ad4..43eebe35176 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -666,6 +666,12 @@ if _OPTIONS["VERBOSE"] then
}
end
+-- only show shadow warnings when enabled
+if (_OPTIONS["SHADOW_CHECK"]=="1") then
+ buildoptions {
+ "-Wshadow"
+ }
+
-- only show deprecation warnings when enabled
if _OPTIONS["DEPRECATED"]~="1" then
buildoptions {
@@ -834,10 +840,6 @@ end
}
end
else
- if (_OPTIONS["SHADOW_CHECK"]=="1") then
- buildoptions {
- "-Wshadow"
- }
end
if (version == 40201) then
buildoptions {