Re: Shutting up flex output warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Shutting up flex output warnings
Дата
Msg-id 13310.1034904611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Shutting up flex output warnings  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: contrib/dbmirror
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: contrib/dbmirror