Building libmtp-1.1.6 I got this compilation warnings:
ptp.c:2614:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ptp.c:2616:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Anonymous
Hm it's in ptp.c so routing to Marcus, beat me back if it's my fault anyway...
In addition to previous report, building libmtp-1.1.6 by gcc-4.8.2 I'v got one more compilation warning:
mtpz.c:259:23: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
not reproducible, otherwise I wpould have fixed it
memset is also fixed already via commit 1bf919f6295038baa5de725569c5852f83d76039
-> close
But we have other compilation warnings. Do we need to create a new bug for it?
Maybe I'll just check it by myself later...
if you se compilation warnings, just fix them.