summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-05-29 21:24:47 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-05-29 21:30:19 -0400
commit63b558ddd980cd36bcbd8a7465a3412e886ba75e (patch)
tree85b41ed1a13a78b52ec7cc439537fdc4a8b13e88 /regexp.h
parent8be3c4ca13376174c7c23f3a85d05cb2920d9170 (diff)
downloadperl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index db7ae8be01..59d5ee2beb 100644
--- a/regexp.h
+++ b/regexp.h
@@ -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 */
}
}