| От | Tom Lane |
|---|---|
| Тема | Re: New flex warnings |
| Дата | |
| Msg-id | 14275.1210345952@sss.pgh.pa.us обсуждение |
| Ответ на | New flex warnings (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-patches |
Peter Eisentraut <peter_e@gmx.net> writes:
> With GCC 4.3, I get warnings from every flex scanner that 'input' is defined
> but not used. This can be solved by adding %option noinput. I tested this
> option with a current flex and with the old 2.5.4a; both accept it. See
> attached patch. Does anyone see problems with this?
Hm, I wonder why we didn't see those before ... [ looks at code... ]
Oh: yyinput() recurses internally, so even though it's not called
from anywhere else, older gcc's don't realize it's really unreferenced.
I confirm 2.5.4 has the noinput option. Patch seems ok from here,
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера