diff options
author | 2015-05-15 22:05:55 -0400 | |
---|---|---|
committer | 2015-05-15 22:05:55 -0400 | |
commit | 323c29884999475e968e8daec6495d7edeab951b (patch) | |
tree | 96f7d5104e6d667c6f1831e26f53c342600c5ce5 /scripts/genie.lua | |
parent | 7345feea8582b805fccf059694aed016f8d73884 (diff) |
Clang supports -Wshadow, so allow it
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 10 |
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 { |