summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-02-28 21:19:37 +1100
committer Vas Crabb <vas@vastheman.com>2018-02-28 21:19:37 +1100
commit910d2267cad32587d3f8fa19ff603e15d2f336cb (patch)
tree8043cd8c70f7611949ba24bd1bbf564bff951bd5 /scripts/genie.lua
parent0a365065c39b81628bcb9c938fbbc95920a260ab (diff)
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
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua3
1 files changed, 2 insertions, 1 deletions
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 {