[cfe-commits] gnu struct init syntax fix

David Blaikie dblaikie at gmail.com
Fri Aug 26 14:39:52 PDT 2011


Oops, wrong alias - moving to cfe-commits.

On Fri, Aug 26, 2011 at 2:27 PM, David Blaikie <dblaikie at gmail.com> wrote:

> 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-commits/attachments/20110826/18b4b070/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-commits/attachments/20110826/18b4b070/attachment.obj>


More information about the cfe-commits mailing list