[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __attribute__((__unused__)) problem
From: |
Akim Demaille |
Subject: |
Re: __attribute__((__unused__)) problem |
Date: |
Mon, 8 Apr 2013 10:28:54 +0200 |
Le 5 avr. 2013 à 14:00, victor khomenko <address@hidden> a écrit :
> I've recently updated to bison-2.7 and my code stopped compiling. The reason
> is __attribute__((__unused__)) applied to yy_location_print_ - it fails to
> compile in Visual Studio (the *.y file was compiled into *.cpp under Windows
> using bison-2.7 coming with CYGWIN). The problematic code emitted by bison is
> as follows (note that the attribute is not guarded by the _MSC_VER macro):
>
> __attribute__((__unused__))
> #if (defined __STDC__ || defined __C99__FUNC__ \
> || defined __cplusplus || defined _MSC_VER)
> static unsigned
> yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
> #else
> static unsigned
> yy_location_print_ (yyo, yylocp)
> FILE *yyo;
> YYLTYPE const * const yylocp;
> #endif
> {
> ...
> }
Hi Victor,
You are right, this is a serious issue :( I will prepare a 2.7.1
asap. Could you please help me making sure it works properly with
Microsoft compilers? Actually, it would be nice if you could also
help me kill some compiler warnings. Please, have a look at the
following message.
http://lists.gnu.org/archive/html/bug-bison/2013-03/msg00003.html
Thanks in advance!
- __attribute__((__unused__)) problem, victor khomenko, 2013/04/06
- Re: __attribute__((__unused__)) problem,
Akim Demaille <=
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/08
- Re: __attribute__((__unused__)) problem, Akim Demaille, 2013/04/10
- Re: __attribute__((__unused__)) problem, John Horigan, 2013/04/10
- RE: __attribute__((__unused__)) problem, victor khomenko, 2013/04/10
- Re: __attribute__((__unused__)) problem, Frank Heckenbach, 2013/04/11
- Re: __attribute__((__unused__)) problem, John Horigan, 2013/04/11