[PATCH 4/4] xfree86: warning fix

Adam Jackson ajax at redhat.com
Tue Mar 15 11:38:07 PDT 2011


On Tue, 2011-03-15 at 20:31 +0100, Simon Thum wrote:
> On 03/15/2011 04:43 PM, Keith Packard wrote:
> > On Tue, 15 Mar 2011 11:05:07 -0400, Adam Jackson <ajax at redhat.com> wrote:
> > 
> >> xf86RandR12.c: In function 'xf86RandR12EnterVT':
> >> xf86RandR12.c:1769:5: warning: ISO C90 forbids mixed declarations and
> >> code
> True, but I was using the construct as well, based on doc/c-extensions:
>
> The server will not build if your toolchain does not support these
> extensions.
>   ....
>     * interleaved code and declarations: { foo = TRUE; int bar;
> do_stuff(); }
>
> So, what's up with that?

Ideally, we'd figure out a way to get gcc to shut up about it.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110315/e94c8fc5/attachment.pgp>


More information about the xorg-devel mailing list