From 8f7fb0a019ebf8e40302bff892baf39955c594b1 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 28 Nov 2009 12:06:09 -0800 Subject: * Makefile (CFLAGS): If the compiler matches the pattern %g++, then remove some C-front-end-specific warnings from CFLAGS, which the g++ front end will complain about. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e7043276..58cf57a3 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,10 @@ CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \ $(OPT_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS) CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS)) +ifeq ($(patsubst %g++,y,$(CC)),y) +CFLAGS := $(filter-out -Wmissing-prototypes -Wstrict-prototypes,$(CFLAGS)) +endif + OBJS := txr.o lex.yy.o y.tab.o match.o lib.o regex.o gc.o unwind.o stream.o OBJS += hash.o utf8.o -- cgit v1.2.3