GNOME Bugzilla – Bug 410002
void pointer arithmetics in some source files
Last modified: 2007-02-28 17:18:07 UTC
While the GNU C compiler accepts void pointer arithmetics, other compilers are stricter and fail compiling. Therefore, the following patches are needed. By the way, the code in those files looks rather redundant with all those ((casts)(to)(other)(pointers)). You should probably fix that up, maybe using the ADDSIZE macro that's in the patch. Roland
Created attachment 82949 [details] [review] patch 1
Created attachment 82950 [details] [review] patch 2
By the way, the patches are against 2.14.5. I hope there haven't been too many changes to the code since then. Roland
Looks rather nice :-) Thanks Roland. If make check passes this should be safe, AFAIR we have some good regression tests for this lot.
Commited after testing make check. No regressions were found.