Skip to content

Commit 6454766

Browse files
committed
Assert that all switch cases are covered
1 parent 2abea9c commit 6454766

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqli/mysqli.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ void php_mysqli_fetch_into_hash_aux(zval *return_value, MYSQL_RES * result, zend
10941094
case 3:llval = (my_ulonglong) bit_uint3korr(row[i]);break;
10951095
case 2:llval = (my_ulonglong) bit_uint2korr(row[i]);break;
10961096
case 1:llval = (my_ulonglong) uint1korr(row[i]);break;
1097+
EMPTY_SWITCH_DEFAULT_CASE()
10971098
}
10981099
/* even though lval is declared as unsigned, the value
10991100
* may be negative. Therefor we cannot use MYSQLI_LLU_SPEC and must

0 commit comments

Comments
 (0)