diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-06-13 08:45:16 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-06-15 12:28:15 -0700 |
commit | 118e2215c7570362a701ac5fda6148b6d3542eae (patch) | |
tree | 248694801974be0578e4ccc9e8d90fd7db5d4b32 /util.c | |
parent | 0d856a3ae8873b88b1fb47a0d9520f3db9e27b85 (diff) | |
download | perl-118e2215c7570362a701ac5fda6148b6d3542eae.tar.gz |
Use assertions for /* NOT REACHED */
to make sure it really is never reached.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1458,7 +1458,7 @@ Perl_die_sv(pTHX_ SV *baseex) { PERL_ARGS_ASSERT_DIE_SV; croak_sv(baseex); - /* NOTREACHED */ + assert(0); /* NOTREACHED */ return NULL; } @@ -1480,7 +1480,7 @@ Perl_die_nocontext(const char* pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - /* NOTREACHED */ + assert(0); /* NOTREACHED */ va_end(args); return NULL; } @@ -1492,7 +1492,7 @@ Perl_die(pTHX_ const char* pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - /* NOTREACHED */ + assert(0); /* NOTREACHED */ va_end(args); return NULL; } @@ -1592,7 +1592,7 @@ Perl_croak_nocontext(const char *pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - /* NOTREACHED */ + assert(0); /* NOTREACHED */ va_end(args); } #endif /* PERL_IMPLICIT_CONTEXT */ @@ -1603,7 +1603,7 @@ Perl_croak(pTHX_ const char *pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - /* NOTREACHED */ + assert(0); /* NOTREACHED */ va_end(args); } @@ -6443,7 +6443,7 @@ Perl_my_dirfd(pTHX_ DIR * dir) { return dir->dd_fd; #else Perl_die(aTHX_ PL_no_func, "dirfd"); - /* NOT REACHED */ + assert(0); /* NOT REACHED */ return 0; #endif } |