Bugzilla – Bug 144798
libgdiplus-1.1.13-2: undefined code
Last modified: 2006-02-28 21:45:11 UTC
I just tried to compile package libgdiplus-1.1.13-2 with a prerelease of the GNU C compiler version 4.2. It said testbits.c:101: warning: operation on "cptr" may be undefined The source code is for (i = 0; i < 5; i++) { printf ("%02x%02x%02x ", *cptr++, *cptr++, *cptr++); } I agree with the compiler. Suggest new code for (i = 0; i < 5; i++) { printf ("%02x%02x%02x ", cptr[ 0], cptr[ 1], cptr[ 2]); cptr += 3; }
Assigning to libgdiplus developer... seems like a difference in style?
Thanks for the report. Fixed in svn head. Wade will copy to 1.1.13 branch and tag as 1.1.13.4.