From 0fbd9595a7a504347e668138c5889a3a61aae087 Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Sun, 10 Mar 2013 00:06:00 +0100 Subject: [PATCH] Make it possible to customize warnings The code uses some constructs that cause compilers to spit out warnings. As they do no harm, one should be able to turn off such warnings and enable others if needed. --- makefiles/Makefile.linux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux index 2cea009..2b7ad4b 100755 --- a/makefiles/Makefile.linux +++ b/makefiles/Makefile.linux @@ -225,7 +225,9 @@ customflags = # ---------------------- END OF CUSTOMIZABLE OPTIONS ------------------------- -CFLAGS = -g $(sysconfigflags) $(prereleaseflags) +# Disable certain warnings as we don't care for them +CWARNINGS = -Wno-parentheses -Wno-switch-enum +CFLAGS = -g $(sysconfigflags) $(prereleaseflags) $(CWARNINGS) # Don't worry about these -- for development purposes only. PURIFY = purify