From 7ca774a8739bc3887abda2a0259703729026a5ca Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 26 Aug 2009 22:15:59 +0000 Subject: [PATCH] Add -Wno-error to CFLAGS from gram.o as long as it's broken. --- src/backend/parser/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile index 3a46e6c4e3..2d0db5e307 100644 --- a/src/backend/parser/Makefile +++ b/src/backend/parser/Makefile @@ -2,7 +2,7 @@ # # Makefile for parser # -# $PostgreSQL: pgsql/src/backend/parser/Makefile,v 1.49 2009/03/07 00:13:57 alvherre Exp $ +# $PostgreSQL: pgsql/src/backend/parser/Makefile,v 1.50 2009/08/26 22:15:59 petere Exp $ # #------------------------------------------------------------------------- @@ -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 -- 2.40.0