summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2013-05-12 09:58:03 (GMT)
committer Vincent Sanders <vincent.sanders@collabora.co.uk>2013-05-12 09:58:03 (GMT)
commit5df6e339ac1a86dca684cfbcfa86631abfa00d03 (patch)
treefcb2bd295b6cf85807584818bd99af6c75426549
parentdf7c3fd201cd88fd7989566303ca3937cbc7642d (diff)
downloadlibnsfb-5df6e339ac1a86dca684cfbcfa86631abfa00d03.tar.gz
libnsfb-5df6e339ac1a86dca684cfbcfa86631abfa00d03.tar.bz2
make warnings less stringent so it builds on all the compilers we use
-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