diff options
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | include/libwapcaplet/libwapcaplet.h | 2 |
2 files changed, 12 insertions, 3 deletions
@@ -11,11 +11,20 @@ include build/makefiles/Makefile.tools TESTRUNNER = $(BUILDDIR)/test_testrunner$(EXEEXT) # Toolchain flags -WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ +WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Werror -pedantic -CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \ +ifneq ($(GCCVER),2) + WARNFLAGS := $(WARNFLAGS) -Wextra +endif +CFLAGS := $(CFLAGS) -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) +ifneq ($(GCCVER),2) + CFLAGS := $(CFLAGS) -std=c99 +else + # __inline__ is a GCCism + CFLAGS := $(CFLAGS) -Dinline="__inline__" +endif include build/makefiles/Makefile.top diff --git a/include/libwapcaplet/libwapcaplet.h b/include/libwapcaplet/libwapcaplet.h index c3b99ea..919d1e1 100644 --- a/include/libwapcaplet/libwapcaplet.h +++ b/include/libwapcaplet/libwapcaplet.h @@ -33,7 +33,7 @@ typedef struct lwc_string_s lwc_string; typedef enum lwc_error_e { lwc_error_ok = 0, lwc_error_oom = 1, - lwc_error_range = 2, + lwc_error_range = 2 } lwc_error; /** |