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 340055 - gtkwidget.c: illegal declaration (C99)
gtkwidget.c: illegal declaration (C99)
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.8.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-04-28 19:24 UTC by Kazuki Iwamoto
Modified: 2006-04-29 04:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2006-04-28 19:24:33 UTC
Please describe the problem:
'screen' is declared at the middle of a block in gtk_widget_is_composited.

Steps to reproduce:
1. compile by old compiler

Actual results:
Following messages are displayed. (Visual C++ 6.0)
gtkwidget.c(5187) : error C2275: 'GdkScreen' : illegal use of this type as an
expression
        gdktypes.h(106) : see declaration of 'GdkScreen'
gtkwidget.c(5187) : error C2065: 'screen' : undeclared identifier
gtkwidget.c(5189) : error C4047: 'function' : 'GdkScreen *' differs in levels of
indirection from 'int'

Expected results:
The declaration have to be moved to top of block.

Does this happen every time?


Other information:
Comment 1 Matthias Clasen 2006-04-29 04:40:01 UTC
2006-04-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism.  (#340055,
	Kazuki Iwamoto)