diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2009-12-03 Kaz Kylheku <kkylheku@gmail.com> + * Makefile (CFLAGS): Better test for g++, when removing + warning options not appropriate for g++. Sometimes + g++ may be called something that dosn't end in g++, + like g++4. + +2009-12-03 Kaz Kylheku <kkylheku@gmail.com> + * parser.l (YY_NO_UNPUT): Removed superfluous #define. This is not needed because suppressing generation of unput is requested via the %option. In scanners generated by the legacy version of @@ -32,7 +32,7 @@ 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) +ifneq ($(subst g++,@,$(notdir $(CC))),$(notdir $(CC))) CFLAGS := $(filter-out -Wmissing-prototypes -Wstrict-prototypes,$(CFLAGS)) endif |