[cfe-dev] gnu struct init syntax fix

Douglas Gregor dgregor at apple.com
Fri Aug 26 17:15:57 PDT 2011


Committed as r138684, thanks! Please send patches to cfe-commits rather than cfe-dev.

	- Doug

On Aug 26, 2011, at 2:27 PM, David Blaikie 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-dev/attachments/20110826/542f6ce3/attachment.html>


More information about the cfe-dev mailing list