diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 06:59:36 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 06:59:36 +0000 |
commit | d0c37fa613393bb923ca9a0421d65d8d30a20560 (patch) | |
tree | 4d286b87f98fcbd4cb4b5316880eaa933220cb06 /Makefile | |
parent | 4f647b76543ba5bc53c7e9b3127db67a0de792f9 (diff) | |
download | libhubbub-d0c37fa613393bb923ca9a0421d65d8d30a20560.tar.gz libhubbub-d0c37fa613393bb923ca9a0421d65d8d30a20560.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/hubbub/; revision=9664
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 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 -pedantic -ifneq ($(GCCVER),2) - WARNFLAGS := $(WARNFLAGS) -Wextra -Werror +# BeOS/Haiku have standard library errors that issue warnings. +ifneq ($(TARGET),beos) + WARNFLAGS := $(WARNFLAGS) -Werror endif CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) |