diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-05-29 21:24:47 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-05-29 21:30:19 -0400 |
commit | 63b558ddd980cd36bcbd8a7465a3412e886ba75e (patch) | |
tree | 85b41ed1a13a78b52ec7cc439537fdc4a8b13e88 /regexp.h | |
parent | 8be3c4ca13376174c7c23f3a85d05cb2920d9170 (diff) | |
download | perl-63b558ddd980cd36bcbd8a7465a3412e886ba75e.tar.gz |
Use NOT_REACHED for the impossible case.
The default case really is impossible because all the valid
enums values are already covered in the switch.
The NOT_REACHED; is for the compiler (from perl.h),
the /* NOTREACHED */ is for static analyzers.
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -382,7 +382,7 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp) *lenp = 2; return ASCII_MORE_RESTRICT_PAT_MODS; default: - return "?"; /* Unknown */ + NOT_REACHED; /* NOTREACHED */ } } |