diff options
author | Ævar Arnfjörð Bjarmason <avar@cpan.org> | 2011-12-23 22:17:35 +0000 |
---|---|---|
committer | Ævar Arnfjörð Bjarmason <avar@cpan.org> | 2011-12-23 22:17:35 +0000 |
commit | f0cd42383d11de42b3b8137c27c960b257975418 (patch) | |
tree | 4a2ca40d1d146005ce08a71db55a7aeb74d8c8d6 /regexp.h | |
parent | 0ac67bd05e331ac6255307e6558329b549d62217 (diff) | |
download | perl-f0cd42383d11de42b3b8137c27c960b257975418.tar.gz |
regexp.h: remove completely redundant return statement
Remove a redundant return() statement at the end of the
get_regex_charset_name function. The "default" case for the above
switch statement will always return for us.
This was added intentionally in v5.14.0-354-g0984e55 by Jim Cromie,
but the rationale for doing so is that we might have a compiler bug
here, but we're pretty screwed anyway if switch statements stop
working as advertised by the standard so there's no reason to be
defensive in this particular case.
This is also causing a lot of whine from Sun Studio 12 Update 1:
regexp.h", line 329: warning: statement not reached
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -326,7 +326,6 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp) default: return "?"; /* Unknown */ } - return "?"; /* Unknown */ } /* Anchor and GPOS related stuff */ |