Two break; statements that aren't (yet) needed, but may trip someone up
Nicholas Clark [Mon, 25 Feb 2008 11:47:03 +0000 (11:47 +0000)]
in the future.

p4raw-id: //depot/perl@33368

op.c

diff --git a/op.c b/op.c
index 0e78eb1..71ee848 100644 (file)
--- a/op.c
+++ b/op.c
@@ -911,6 +911,7 @@ Perl_scalar(pTHX_ OP *o)
     case OP_SORT:
        if (ckWARN(WARN_VOID))
            Perl_warner(aTHX_ packWARN(WARN_VOID), "Useless use of sort in scalar context");
+       break;
     }
     return o;
 }
@@ -2465,6 +2466,7 @@ Perl_fold_constants(pTHX_ register OP *o)
        /* XXX what about the numeric ops? */
        if (PL_hints & HINT_LOCALE)
            goto nope;
+       break;
     }
 
     if (PL_parser && PL_parser->error_count)