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 669511 - gtkcsstypes.c: variable is declared at middle of block
gtkcsstypes.c: variable is declared at middle of block
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.3.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-02-06 22:36 UTC by Kazuki Iwamoto
Modified: 2012-02-08 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gtk/gtkcsstypes.c (610 bytes, patch)
2012-02-06 22:36 UTC, Kazuki Iwamoto
none Details | Review
Avoid a C99ism (1.09 KB, patch)
2012-02-08 12:30 UTC, Matthias Clasen
committed Details | Review

Description Kazuki Iwamoto 2012-02-06 22:36:21 UTC
Created attachment 206939 [details] [review]
patch for gtk/gtkcsstypes.c

A variable is declared at the middle of the block.
Old compiler will occur error, because of C99ism.
The declaration should be moved to the top of the block.
Comment 1 Matthias Clasen 2012-02-08 12:30:01 UTC
The following fix has been pushed:
c2512d1 Avoid a C99ism
Comment 2 Matthias Clasen 2012-02-08 12:30:04 UTC
Created attachment 207093 [details] [review]
Avoid a C99ism

Move variable declarations to the beginning of the block.