GNOME Bugzilla – Bug 508602
gmemory{in|out}putstream.c: unknown pointer size
Last modified: 2008-01-17 16:39:41 UTC
Please describe the problem: 'void *' has no size. But it is used in substitution for the byte size pointer. Steps to reproduce: 1.compile. Actual results: Following messages are displayed (Visual C++). gmemoryinputstream.c(286) : error C2036: 'void *' : unknown size gmemoryoutputstream.c(316) : error C2036: 'gpointer' : unknown size gmemoryoutputstream.c(368) : error C2036: 'gpointer' : unknown size Expected results: Those should be casted. Does this happen every time? Revision 6241 or later Other information:
Created attachment 102537 [details] [review] patch for gmemoryinputstream.c
Created attachment 102538 [details] [review] patch for gmemoryoutputstream.c
Please commit, thanks.
2008-01-15 Alexander Larsson <alexl@redhat.com> * gmemoryinputstream.c: * gmemoryoutputstream.c: Don't do pointer arithmetic on void * (#508602) Patch from Kazuki IWAMOTO