From 5df6e339ac1a86dca684cfbcfa86631abfa00d03 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 May 2013 10:58:03 +0100 Subject: make warnings less stringent so it builds on all the compilers we use --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3