diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-28 12:06:09 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-28 12:06:09 -0800 |
commit | 8f7fb0a019ebf8e40302bff892baf39955c594b1 (patch) | |
tree | 6c10208b541cdf4183e2020cb7d8ef250b33e528 | |
parent | 0e7eec82341e06cd42f2084f776d8377cbcf0871 (diff) | |
download | txr-8f7fb0a019ebf8e40302bff892baf39955c594b1.tar.gz txr-8f7fb0a019ebf8e40302bff892baf39955c594b1.tar.bz2 txr-8f7fb0a019ebf8e40302bff892baf39955c594b1.zip |
* 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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2009-11-28 Kaz Kylheku <kkylheku@gmail.com> + * 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. + +2009-11-28 Kaz Kylheku <kkylheku@gmail.com> + * Makefile (CFLAGS): add -Dlint to CFLAGS when compiling y.tab.o. This suppresses some warnings from a byacc-generated parser, and gets rid of a useless static sccsid array. May help with @@ -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 |