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 462549 - gregex.c: variable is declared at middle of block
gregex.c: variable is declared at middle of block
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gregex
2.13.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2007-08-01 17:32 UTC by Kazuki Iwamoto
Modified: 2007-08-03 18:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2007-08-01 17:32:21 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:
Comment 1 Matthias Clasen 2007-08-03 18:15:46 UTC
2007-08-03  Matthias Clasen  <mclasen@redhat.com>

        * glib/gregex.c: Fix a C99ism.  (#462549, Kazuki IWAMOTO)