GNOME Bugzilla – Bug 462549
gregex.c: variable is declared at middle of block
Last modified: 2007-08-03 18:15:46 UTC
Please describe the problem: 'opts' is declared at the middle of the block in 'g_match_info_next'. Old compiler will occur error, because of C99ism. Steps to reproduce: 1. compile gregex.c by old compiler Actual results: Following message is displayed.(Visual C++) gregex.c(303) : error C2143: syntax error : missing ';' before 'type' Expected results: The declaration should be moved to the top of the block. Does this happen every time? Revision 5652 or later Other information:
2007-08-03 Matthias Clasen <mclasen@redhat.com> * glib/gregex.c: Fix a C99ism. (#462549, Kazuki IWAMOTO)