summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-13 21:48:53 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-13 21:48:53 -0400
commitb57b04d533ba5d71576359062a3470c22080f76d (patch)
tree41acee35d9a43f0be44c9d08336590f242d3f362 /regexp.h
parent8c2b19724d117cecfa186d044abdbf766372c679 (diff)
downloadperl-b57b04d533ba5d71576359062a3470c22080f76d.tar.gz
Revert "Some low-hanging -Wunreachable-code fruits."
This reverts commit 8c2b19724d117cecfa186d044abdbf766372c679. I don't understand - smoke-me came back happy with three separate reports... oh well, some other time.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexp.h b/regexp.h
index 3295c4a293..db7ae8be01 100644
--- a/regexp.h
+++ b/regexp.h
@@ -381,9 +381,9 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp)
case REGEX_ASCII_MORE_RESTRICTED_CHARSET:
*lenp = 2;
return ASCII_MORE_RESTRICT_PAT_MODS;
+ default:
+ return "?"; /* Unknown */
}
- NOT_REACHED; /* NOTREACHED */
- return "?";
}
/* Do we have some sort of anchor? */