From 323c29884999475e968e8daec6495d7edeab951b Mon Sep 17 00:00:00 2001 From: balr0g Date: Fri, 15 May 2015 22:05:55 -0400 Subject: Clang supports -Wshadow, so allow it --- scripts/genie.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts') 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 { -- cgit v1.2.3