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 440511 - xcursors.h: illegal initializing
xcursors.h: illegal initializing
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-05-22 17:40 UTC by Kazuki Iwamoto
Modified: 2007-05-29 01:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2007-05-22 17:40:28 UTC
Please describe the problem:
'cursors' is initialized in xcursors.h.
It has following members.

const gchar *name;
const gchar *builtin;
gint type;
guchar width;
guchar height;
guchar hotx;
guchar hoty;
guchar *data;

At revision 17645, 'builtin' was appended.
But the last element of the structure was not updated.

http://svn.gnome.org/viewcvs/gtk%2B/trunk/gdk/win32/xcursors.h?r1=17096&r2=17645

Steps to reproduce:
1.Compile by Visual C++

Actual results:
The following message is displayed.

gdk¥win32¥xcursors.h(358) : error C4047: 'initializing' : 'guchar' differs in levels of indirection from 'void *'

Expected results:
The last element should be initialized correctly.
For example,

{ NULL, NULL, 0, 0, 0, 0, 0, NULL }

Does this happen every time?
gtk+-2.10.12
revision 17645 or later

Other information:
Comment 1 Dominic Lachowicz 2007-05-22 17:46:13 UTC
CC'ing bratsche, since he committed the patch in question
Comment 2 Cody Russell 2007-05-29 01:04:37 UTC
Fixed in trunk and gtk-2-10 branch.