[cfe-dev] gnu struct init syntax fix

David Blaikie dblaikie at gmail.com
Fri Aug 26 14:27:23 PDT 2011


The tiniest of tiny patches, as per a current cfe-dev discussion shown
below.

/tmp/webcompile/_1251_0.c:1:37: warning: use of GNU old-style field
designator extension [-Wgnu-designator]struct Point { int x, y; } p =
{ x: 10 };                                 ~~ ^
         .x =

Shouldn't that ^ be below the x, not the 10? like this:

/tmp/webcompile/_1251_0.c:1:37: warning: use of GNU old-style field
designator extension [-Wgnu-designator]struct Point { int x, y; } p =
{ x: 10 };                                 ^~
        .x =

Yes, that'd be better. Patch welcome :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110826/f318fbb9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnu_old.diff
Type: application/octet-stream
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110826/f318fbb9/attachment.obj>


More information about the cfe-dev mailing list