diff options
| author | Mitchell Blank Jr <[email protected]> | 2012-05-20 00:26:49 -0700 |
|---|---|---|
| committer | Mitchell Blank Jr <[email protected]> | 2012-05-20 00:26:49 -0700 |
| commit | 606a1665c5cfff42622687d693b9362b6c1b663a (patch) | |
| tree | 445f2dd2d696ec1b8d346f8c97ffb04101596f42 /src/encoding.c | |
| parent | 1ad7a1e3d8da7b00a9e589c201fe79e5b9541692 (diff) | |
| download | mruby-606a1665c5cfff42622687d693b9362b6c1b663a.tar.gz mruby-606a1665c5cfff42622687d693b9362b6c1b663a.zip | |
C++ compilability - avoid 'goto' across a variable initialization
C++ is pickier about when a 'goto' can cross a variable being delcared.
The fix is to just add a set of braces to restrict the variable's scope.
Without this, g++ will fail with:
regcomp.c:3057: error: jump to label 'set_call_attr'
regcomp.c:3087: error: from here
regcomp.c:3041: error: skips initialization of 'int gnum'
Diffstat (limited to 'src/encoding.c')
0 files changed, 0 insertions, 0 deletions
