Re: [HACKERS] Suppressing that pesky warning with older flex versions

2017-02-19 Thread Tom Lane
Robert Haas writes: > On Sat, Feb 18, 2017 at 10:40 PM, Tom Lane wrote: >> It seems like it would be quite simple and reliable to apply a patch >> that inserts "(void) yyg;" into this function. (Which, indeed, is >> essentially how flex 2.5.36 and

Re: [HACKERS] Suppressing that pesky warning with older flex versions

2017-02-19 Thread Robert Haas
On Sat, Feb 18, 2017 at 10:40 PM, Tom Lane wrote: > While experimenting with enabling -Werror in the buildfarm, I got > annoyed about the fact that we have to apply -Wno-error while > building some of the flex scanners, because with flex versions > before 2.5.36 you get > >

[HACKERS] Suppressing that pesky warning with older flex versions

2017-02-18 Thread Tom Lane
While experimenting with enabling -Werror in the buildfarm, I got annoyed about the fact that we have to apply -Wno-error while building some of the flex scanners, because with flex versions before 2.5.36 you get scan.c: In function 'yy_try_NUL_trans': scan.c:10317: warning: unused variable 'yyg'