aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fe0080b..7bacd49 100644
--- a/Makefile
+++ b/Makefile
@@ -246,6 +246,10 @@ else ifeq ($(NO_GCC), 1)
else
WARNINGS := \
-Wall \
+ -Wextra \
+ -pedantic \
+ -Wno-implicit-function-declaration \
+ -Wno-implicit-fallthrough \
-Wno-sign-compare \
-Wno-unused-variable \
-Wno-unused-function \
@@ -256,9 +260,9 @@ else
endif
ifeq ($(DEBUG),1)
- FLAGS += -O0 -g
+ FLAGS += -O0 -g -std=c89
else
- FLAGS += -O2 -DNDEBUG
+ FLAGS += -O2 -DNDEBUG -std=c89
endif
ifeq ($(PERF_TEST),1)