summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-29 07:54:57 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-29 10:16:44 -0400
commite1ee396065926b895c7d618e39afbf16cb549f31 (patch)
tree47a47fa37b96b4d72d8526323c4ad576526003aa /regexec.c
parenta74ff37d56a36f313c3eec2c8f99167b0c7a28d9 (diff)
downloadperl-e1ee396065926b895c7d618e39afbf16cb549f31.tar.gz
Move return false out of switch default.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/regexec.c b/regexec.c
index 432764b23e..33fb5daef2 100644
--- a/regexec.c
+++ b/regexec.c
@@ -536,16 +536,10 @@ S_isFOO_utf8_lc(pTHX_ const U8 classnum, const U8* character)
case _CC_ENUM_BLANK: return is_HORIZWS_high(character);
case _CC_ENUM_XDIGIT: return is_XDIGIT_high(character);
case _CC_ENUM_VERTSPACE: return is_VERTWS_high(character);
- default: return 0; /* Things like CNTRL are always
- below 256 */
+ default: break;
}
- /* NOTREACHED */
- /* Some compilers/linters detect that this spot cannot be reached
- * (because all code paths above already did return), while some
- * others throw a fit unless we have a return at the end. */
- assert(0);
- return FALSE;
+ return FALSE; /* Things like CNTRL are always below 256 */
}
/*