GNOME Bugzilla – Bug 340055
gtkwidget.c: illegal declaration (C99)
Last modified: 2006-04-29 04:40:01 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:
2006-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism. (#340055, Kazuki Iwamoto)