diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 07:01:06 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 07:01:06 +0000 |
commit | e00a1f0dffe58a36d30a93a073da31562a9ffa57 (patch) | |
tree | 6965171917385c9f88cc5e66a76a7f0ff0628953 /Makefile | |
parent | 4a9d61f75baf66c6c6fed350477d2a48ff3814e6 (diff) | |
download | libcss-e00a1f0dffe58a36d30a93a073da31562a9ffa57.tar.gz libcss-e00a1f0dffe58a36d30a93a073da31562a9ffa57.tar.bz2 |
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
svn path=/trunk/libcss/; revision=9665
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -10,11 +10,12 @@ include build/makefiles/Makefile.tools TESTRUNNER := $(PERL) build/testtools/testrunner.pl # Toolchain flags -WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \ +WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ - -Wmissing-declarations -Wnested-externs -Werror -pedantic -ifneq ($(GCCVER),2) - WARNFLAGS := $(WARNFLAGS) -Wextra + -Wmissing-declarations -Wnested-externs -pedantic +# BeOS/Haiku standard library headers create warnings. +ifneq ($(TARGET),beos) + WARNFLAGS := $(WARNFLAGS) -Werror endif CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) |