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 522056 - gfilemonitor.c: variable is declared at middle of block
gfilemonitor.c: variable is declared at middle of block
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.16.x
Other All
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-03-12 17:13 UTC by Kazuki Iwamoto
Modified: 2008-03-14 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gfilemonitor.c (402 bytes, patch)
2008-03-13 17:07 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2008-03-12 17:13:22 UTC
Please describe the problem:
'res' is declared at the middle of the block in 'g_file_monitor_is_cancelled'.
Old compiler will occur error, because of C99ism.

Steps to reproduce:
1. compile gfilemonitor.c by old compiler

Actual results:
Following messages are displayed.(Visual C++)
gfilemonitor.c(253) : error C2143: syntax error : missing ';' before 'type'
gfilemonitor.c(256) : error C2065: 'res' : undeclared identifier

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

Does this happen every time?
GLib 2.16.1
Revision 6630

Other information:
Comment 1 Kazuki Iwamoto 2008-03-13 17:07:51 UTC
Created attachment 107232 [details] [review]
patch for gfilemonitor.c
Comment 2 Alexander Larsson 2008-03-14 11:33:41 UTC
fixed.