This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add missing break in switch.
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 7 Feb 2016 00:55:53 +0000 (19:55 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 7 Feb 2016 13:23:46 +0000 (08:23 -0500)
Coverity CID 28986: Missing break in switch (MISSING_BREAK)

gv.c

diff --git a/gv.c b/gv.c
index bb404cf..e4fb3fe 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -385,6 +385,7 @@ Perl_gv_init_pvn(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, U32 flag
        case SVt_PVIO:
             Perl_croak(aTHX_ "Cannot convert a reference to %s to typeglob",
                       sv_reftype(has_constant, 0));
+            break;
 
        default: NOOP;
        }