summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2013-05-12 10:58:03 +0100
committerVincent Sanders <vincent.sanders@collabora.co.uk>2013-05-12 10:58:03 +0100
commit5df6e339ac1a86dca684cfbcfa86631abfa00d03 (patch)
treefcb2bd295b6cf85807584818bd99af6c75426549 /Makefile
parentdf7c3fd201cd88fd7989566303ca3937cbc7642d (diff)
downloadlibnsfb-5df6e339ac1a86dca684cfbcfa86631abfa00d03.tar.gz
libnsfb-5df6e339ac1a86dca684cfbcfa86631abfa00d03.tar.bz2
make warnings less stringent so it builds on all the compilers we use
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dc3daee..20cc233 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,11 @@ TESTRUNNER = test/runtest.sh $(BUILDDIR) $(EXEEXT)
# Toolchain flags
WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wnested-externs -Werror -pedantic \
- -Wno-overlength-strings # For nsglobe.c
+ -Wmissing-declarations -Wnested-externs -Werror
+
+# would like these flags but gcc earlier than 4.4 fail
+#-pedantic -Wno-overlength-strings # For nsglobe.c
+
CFLAGS := -g -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112L \
-I$(CURDIR)/include/ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) -Wno-error