compiler warning

Started by Jeff Davisover 16 years ago2 messageshackers
Jump to latest
#1Jeff Davis
pgsql@j-davis.com

A little while ago, I saw a compiler warning creep in:

In file included from gram.y:11202:
scan.c: In function ‘yy_try_NUL_trans’:
scan.c:15765: warning: unused variable ‘yyg’

I know there were some changes to minimum versions, but I think I have
those versions (listed below). I don't know if others are seeing this
warning or not.

Regards,
Jeff Davis

$ gcc --version
gcc (Debian 4.3.3-14) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ flex --version
flex 2.5.35
$ bison --version
bison (GNU Bison) 2.4.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jeff Davis (#1)
Re: compiler warning

Jeff Davis <pgsql@j-davis.com> writes:

A little while ago, I saw a compiler warning creep in:
In file included from gram.y:11202:
scan.c: In function ‘yy_try_NUL_trans’:
scan.c:15765: warning: unused variable ‘yyg’

Yeah, this is a bogosity in the current release of "flex".
http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2820457&amp;group_id=97492&amp;atid=618177

regards, tom lane