Skip to content

Commit 7daa8b7

Browse files
committed
BZ2: Use EMPTY_SWITCH_DEFAULT_CASE
This adds an assertion that this case indeed never happens
1 parent f4c23b0 commit 7daa8b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/bz2/bz2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ PHP_FUNCTION(bzopen)
393393
RETURN_FALSE;
394394
}
395395
break;
396-
default:
397-
/* not reachable */
398-
break;
396+
EMPTY_SWITCH_DEFAULT_CASE();
399397
}
400398

401399
if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) {

0 commit comments

Comments
 (0)