After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 508602 - gmemory{in|out}putstream.c: unknown pointer size
gmemory{in|out}putstream.c: unknown pointer size
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.15.x
Other All
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-01-10 20:16 UTC by Kazuki Iwamoto
Modified: 2008-01-17 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gmemoryinputstream.c (415 bytes, patch)
2008-01-10 20:20 UTC, Kazuki Iwamoto
committed Details | Review
patch for gmemoryoutputstream.c (570 bytes, patch)
2008-01-10 20:20 UTC, Kazuki Iwamoto
committed Details | Review

Description Kazuki Iwamoto 2008-01-10 20:16:35 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:
Comment 1 Kazuki Iwamoto 2008-01-10 20:20:04 UTC
Created attachment 102537 [details] [review]
patch for gmemoryinputstream.c
Comment 2 Kazuki Iwamoto 2008-01-10 20:20:47 UTC
Created attachment 102538 [details] [review]
patch for gmemoryoutputstream.c
Comment 3 Matthias Clasen 2008-01-10 22:21:01 UTC
Please commit, thanks.
Comment 4 Alexander Larsson 2008-01-15 15:53:48 UTC
2008-01-15  Alexander Larsson  <alexl@redhat.com>

        * gmemoryinputstream.c:
        * gmemoryoutputstream.c:
	Don't do pointer arithmetic on void * (#508602)
	Patch from Kazuki IWAMOTO