From: Peter Eisentraut Date: Wed, 26 Aug 2009 22:15:59 +0000 (+0000) Subject: Add -Wno-error to CFLAGS from gram.o as long as it's broken. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=37403059193204bc09f62ea9f59fbcc56dc9fefd;p=users%2Fsimon%2Fpostgres.git Add -Wno-error to CFLAGS from gram.o as long as it's broken. --- diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile index 54c4589b26..03ec0b00e9 100644 --- a/src/backend/parser/Makefile +++ b/src/backend/parser/Makefile @@ -24,6 +24,11 @@ include $(top_srcdir)/src/backend/common.mk # scan is compiled as part of gram gram.o: $(srcdir)/scan.c +# Latest flex causes warnings in this file. +ifeq ($(GCC),yes) +gram.o: CFLAGS += -Wno-error +endif + # There is no correct way to write a rule that generates two files. # Rules with two targets don't have that meaning, they are merely