Hi Sean, I fear that this one will fall through if we don't have an issue for it, so I logged https://github.com/libusbx/libusbx/issues/53
Please don't hesitate to use the issue reporting feature from github, for code improvements, as it should help ensure they find their way into a release. Regards, /Pete On 2012.10.01 00:56, Sean McBride wrote: > Hi all, > > libusbx's "list_entry" macro seems to do exactly what is described here: > > <http://en.wikipedia.org/wiki/Offsetof> > > In particular, "it has undefined behavior according to the C standard, since > it involves a dereference of a null pointer". > > After building libusbx with clang and -fcatch-undefined-behavior, I triggered > this problem. > > Could list_entry be reworked to use offsetof instead? > > Thanks, > ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel