com php-src: Use EMPTY_SWITCH_DEFAULT_CASE in php_u nicode.c: ext/mbstring/php_unicode.c
| From: | Nikita Popov | Date: | Fri, 12 Apr 2019 08:26:11 +0000 |
| Subject: | com php-src: Use EMPTY_SWITCH_DEFAULT_CASE in php_u nicode.c: ext/mbstring/php_unicode.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105682@lists.php.net to get a copy of this message | ||
Commit: 8e8d129d7f2104ec0e1634e11126bfdfd5fb15e1
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 12 Apr 2019 10:26:11 +0200
Parents: 0f777c768ca158f26cd16faaa37bd458164b119e
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8e8d129d7f2104ec0e1634e11126bfdfd5fb15e1
Log:
Use EMPTY_SWITCH_DEFAULT_CASE in php_unicode.c
Avoids a potentially uninitialized variable warning.
Changed paths:
M ext/mbstring/php_unicode.c
Diff:
diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c
index 69fdfc0..664f760 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++) {