Gtk build fix.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 11:57:00 +0000 (11:57 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 11:57:00 +0000 (11:57 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28185 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/pcre/pcre_exec.cpp

index fde8e71..7777a51 100644 (file)
@@ -1,3 +1,11 @@
+2007-11-28  Mark Rowe  <mrowe@apple.com>
+
+        Gtk build fix.  Rubber-stamped by Eric.
+
+        * pcre/pcre_exec.cpp:
+        (match): Add braces around the body of the case statement to prevent
+        wanings about jumps across the initialization of a variable.
+
 2007-11-29  Eric Seidel  <eric@webkit.org>
 
         Reviewed by Mark Rowe.
index e7572ae..9192888 100644 (file)
@@ -756,6 +756,7 @@ RECURSE:
                 NEXT_OPCODE;
                 
                 BEGIN_OPCODE(NOT_DIGIT):
+            {
                 if (stack.currentFrame->args.subjectPtr >= md.end_subject)
                     RRETURN_NO_MATCH;
                 int c = getCharAndAdvance(stack.currentFrame->args.subjectPtr);
@@ -763,7 +764,7 @@ RECURSE:
                     RRETURN_NO_MATCH;
                 stack.currentFrame->args.instructionPtr++;
                 NEXT_OPCODE;
-                
+            }    
                 BEGIN_OPCODE(DIGIT):
             {
                 if (stack.currentFrame->args.subjectPtr >= md.end_subject)