diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-29 07:54:57 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-29 10:16:44 -0400 |
commit | e1ee396065926b895c7d618e39afbf16cb549f31 (patch) | |
tree | 47a47fa37b96b4d72d8526323c4ad576526003aa /regexec.c | |
parent | a74ff37d56a36f313c3eec2c8f99167b0c7a28d9 (diff) | |
download | perl-e1ee396065926b895c7d618e39afbf16cb549f31.tar.gz |
Move return false out of switch default.
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 */ } /* |