From: Nikita Popov Date: Fri, 12 Apr 2019 08:26:11 +0000 (+0200) Subject: Use EMPTY_SWITCH_DEFAULT_CASE in php_unicode.c X-Git-Tag: php-7.4.0alpha1~532 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e8d129d7f2104ec0e1634e11126bfdfd5fb15e1;p=php Use EMPTY_SWITCH_DEFAULT_CASE in php_unicode.c Avoids a potentially uninitialized variable warning. --- diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c index 69fdfc0706..664f760fc3 100644 --- a/ext/mbstring/php_unicode.c +++ b/ext/mbstring/php_unicode.c @@ -371,9 +371,7 @@ static int convert_case_filter(int c, void *void_data) } break; } - default: - assert(0); - break; + EMPTY_SWITCH_DEFAULT_CASE() } for (i = 0; i < len; i++) {