Re: Shutting up flex output warnings - Mailing list pgsql-patches

From Tom Lane
Subject Re: Shutting up flex output warnings
Date
Msg-id 13310.1034904611@sss.pgh.pa.us
Whole thread Raw
In response to Shutting up flex output warnings  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut <peter_e@gmx.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

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: contrib/dbmirror
Next
From: "Marc G. Fournier"
Date:
Subject: Re: contrib/dbmirror