Re: "Using plain integer as NULL pointer" false positive for zero struct initializer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus,

Interesting. Looking at the kernel, we actually have a lot of them, ie

     [torvalds@i7 linux]$ git grep 'struct.*= {[:space:]*}' | wc
        1105    6766   81616
...
and I didn't realize that the empty one might not even be standard.

I didn't know that gcc supported the empty form as an extension.

http://c0x.coding-guidelines.com/6.7.8.html
It's in section 6.7.9 of the C11 edition of the Standard.

--
Derek M. Jones           Software analysis
tel: +44 (0)1252 520667  blog:shape-of-code.coding-guidelines.com



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux