summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/makefile b/makefile
index 573ec648cac..281148300e6 100644
--- a/makefile
+++ b/makefile
@@ -474,19 +474,15 @@ endif
# add the optimization flag
CCOMFLAGS += -O$(OPTIMIZE)
-# if we are optimizing, include optimization options
-# and make all errors into warnings
-ifneq ($(OPTIMIZE),0)
-ifneq ($(TARGETOS),os2)
+# add the error warning flag
ifndef NOWERROR
-CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
-else
-CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
+CCOMFLAGS += -Werror
endif
-else
+
+# if we are optimizing, include optimization options
+ifneq ($(OPTIMIZE),0)
CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
endif
-endif
# add a basic set of warnings
CCOMFLAGS += \