On Wed, Jan 19, 2011 at 3:45 PM, Johannes Stezenbach <[email protected]> wrote: >> But I have a deeper problem here. I do not see it as a good decision >> to butcher a readable piece of code into a obfuscated mess *only* >> to shut up gcc. gcc has to provide means to do it in some cleaner way. > > The gcc warning means: This is invalid code, it will break with > other compilers (including future gcc versions). The C99 standard > defines the aliasing rules precisely.
I have no problem with warning per se. I have a problem with near impossibility to explain gcc that here I do want mii pointer to be treated as "can alias anything". -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
