aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoão Silva2017-08-16 17:59:11 +0100
committerJoão Silva2017-08-16 17:59:11 +0100
commitaef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (patch)
treef1d740e45522954e48e036103268c5ccb5dcbef2 /Makefile
parentaa610b2ba997a945c77ce06e9a33638dedb480da (diff)
downloadsnes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.gz
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.bz2
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.zip
Changed compile-time flags to use C89 and fixed new warnings raised.
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)