GNOME Bugzilla – Bug 522056
gfilemonitor.c: variable is declared at middle of block
Last modified: 2008-03-14 11:33:41 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:
Created attachment 107232 [details] [review] patch for gfilemonitor.c
fixed.