From 910d2267cad32587d3f8fa19ff603e15d2f336cb Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 28 Feb 2018 21:19:37 +1100 Subject: Start squeezing out the poor-performing parts of the output_manager: * Turn deprecated declataion warnings on by default and make them non-fatal * Make output_finder iterable in algorithms and range-based for loops * Replace a lot of set_something with output_finder --- scripts/genie.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/genie.lua') diff --git a/scripts/genie.lua b/scripts/genie.lua index 6d89686fce8..ad7018ed5c8 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -763,7 +763,7 @@ if (_OPTIONS["SHADOW_CHECK"]=="1") then end -- only show deprecation warnings when enabled -if _OPTIONS["DEPRECATED"]~="1" then +if _OPTIONS["DEPRECATED"]=="0" then buildoptions { "-Wno-deprecated-declarations" } @@ -933,6 +933,7 @@ end "-Wwrite-strings", "-Wno-sign-compare", "-Wno-conversion", + "-Wno-error=deprecated-declarations", } -- warnings only applicable to C compiles buildoptions_c { -- cgit v1.2.3-70-g09d2