Shutting up flex output warnings

Lists: pgsql-patches
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Shutting up flex output warnings
Date: 2002-10-17 19:18:18
Message-ID: Pine.LNX.4.44.0210172028360.928-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Would it be appropriate to apply the following patch to eliminate the
warnings generated by the flex output?

diff -ru ../cvs-pgsql/src/interfaces/ecpg/preproc/Makefile ./src/interfaces/ecpg/preproc/Makefile
--- ../cvs-pgsql/src/interfaces/ecpg/preproc/Makefile Sat Jul 27 22:10:05 2002
+++ ./src/interfaces/ecpg/preproc/Makefile Thu Oct 17 19:53:18 2002
@@ -14,7 +14,7 @@
-DINCLUDE_PATH=\"$(includedir)\"

ifeq ($(GCC), yes)
-override CFLAGS += -Wno-error
+override CFLAGS += -Wno-unused
endif

OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
diff -ru ../cvs-pgsql/src/pl/plpgsql/src/Makefile ./src/pl/plpgsql/src/Makefile
--- ../cvs-pgsql/src/pl/plpgsql/src/Makefile Thu Sep 5 20:28:46 2002
+++ ./src/pl/plpgsql/src/Makefile Thu Oct 17 19:54:16 2002
@@ -11,7 +11,7 @@
include $(top_builddir)/src/Makefile.global

ifeq ($(GCC), yes)
-override CFLAGS+= -Wno-error
+override CFLAGS+= -Wno-unused
endif

# Shared library parameters

--
Peter Eisentraut peter_e(at)gmx(dot)net


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Shutting up flex output warnings
Date: 2002-10-18 01:30:11
Message-ID: 13310.1034904611@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Would it be appropriate to apply the following patch to eliminate the
> warnings generated by the flex output?

> diff -ru ../cvs-pgsql/src/interfaces/ecpg/preproc/Makefile ./src/interfaces/ecpg/preproc/Makefile

> ifeq ($(GCC), yes)
> -override CFLAGS += -Wno-error
> +override CFLAGS += -Wno-unused
> endif

Can you make it apply only to the flex output file, and not to all the
other C files in those directories? I'm not thrilled about losing this
error check on plpgsql and ecpg/preproc as a whole.

regards, tom lane