summaryrefslogtreecommitdiff
path: root/generate/unix/Makefile.config
diff options
context:
space:
mode:
Diffstat (limited to 'generate/unix/Makefile.config')
-rw-r--r--generate/unix/Makefile.config5
1 files changed, 4 insertions, 1 deletions
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
index b46634367..0deeb1411 100644
--- a/generate/unix/Makefile.config
+++ b/generate/unix/Makefile.config
@@ -203,7 +203,6 @@ CWARNINGFLAGS = \
-Wall\
-Wbad-function-cast\
-Wdeclaration-after-statement\
- -Werror\
-Wformat=2\
-Wmissing-declarations\
-Wmissing-prototypes\
@@ -213,6 +212,10 @@ CWARNINGFLAGS = \
-Wpointer-arith\
-Wundef
+ifneq ($(NOWERROR),TRUE)
+CWARNINGFLAGS += -Werror
+endif
+
#
# Common gcc 4+ warning flags
#