diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 07:01:57 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-11-06 07:01:57 +0000 |
commit | 2183cfcb2cbe85532b711b0696cf05311603b0a9 (patch) | |
tree | 147953a636a1d39182107387882aa7800bf6eca9 | |
parent | 089d744d0d64d50a00e0a17df2c768c626778042 (diff) | |
download | libnsbmp-2183cfcb2cbe85532b711b0696cf05311603b0a9.tar.gz libnsbmp-2183cfcb2cbe85532b711b0696cf05311603b0a9.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/libnsbmp/; revision=9666
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8,11 +8,12 @@ COMPONENT_TYPE ?= lib-static include build/makefiles/Makefile.tools # 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 standard library headers create warnings +ifneq ($(TARGET),beos) + WARNFLAGS := $(WARNFLAGS) -Werror endif CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) |