C99 structure initialisers and Samba3
Volker Lendecke
Volker.Lendecke at SerNet.DE
Wed Aug 23 12:00:41 GMT 2006
On Wed, Aug 23, 2006 at 01:54:11PM +0200, Stefan (metze) Metzmacher wrote:
> uint8_t foo[8];
> char *str;
> str = foo;
>
> that's valid C code, but we want to get a warning if it's not written
> explicit like this;
>
> str = (char *)foo;
In particular without the explicit cast it is not valid C++.
No, I don't want to rely on C++ features, but g++ has for
already found one bug that gcc did not find, and I would
like to have one machine running g++ in the build farm.
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060823/63d7e52d/attachment.bin
More information about the samba-technical
mailing list