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]

 



Luc,

So if you want to use strictly standard C and avoid the warning
you have to use '{ NULL }'.

Using of 0 in this context does not make the source non-strictly
conforming.

"An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant."

http://c0x.coding-guidelines.com/6.3.2.3.html

--
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