On Tue, 12 Jun 2012 18:31:14 +0200, Ludovic Rousseau said: >I have similar warnings under Mac OS X when using -fstrict-aliasing in CFLAGS. > >$ make >make all-recursive >Making all in libusb > CC libusb_1_0_la-core.lo > CC libusb_1_0_la-descriptor.lo > CC libusb_1_0_la-io.lo > CC libusb_1_0_la-sync.lo > CC libusb_1_0_la-darwin_usb.lo > CC libusb_1_0_la-threads_posix.lo >os/darwin_usb.c: In function 'usb_setup_device_iterator': >os/darwin_usb.c:176: warning: type-punning to incomplete type might >break strict-aliasing rules > > *SNIP* > >According to [1] it is a bug in (Apple) GCC. > > *SNIP* > >[1] http://lists.apple.com/archives/xcode-users/2008/Jul/msg00745.html
Hey, that was me! :) The particular bug I referred to was with CFStrings, not this warning flag in general. I always found this explanation of strict aliasing to be quite useful: <http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html> Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel