Thread: compiler warning

compiler warning

From
Jeff Davis
Date:
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.






Re: compiler warning

From
Tom Lane
Date:
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&aid=2820457&group_id=97492&atid=618177
        regards, tom lane