Skip to content

Commit 550f840

Browse files
authored
Fix fall through warning in sapi/litespeed (#14530)
This fixes this warning using ZEND_FALLTHROUGH: ``` php-src/sapi/litespeed/lsapi_main.c: In function ‘parse_opt’: php-src/sapi/litespeed/lsapi_main.c:1196:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 1196 | if ( *((*(p-1))+2) == 's' ) | ^ ```
1 parent 11a46b3 commit 550f840

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/litespeed/lsapi_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "php_ini.h"
2121
#include "php_variables.h"
2222
#include "zend_highlight.h"
23+
#include "zend_portability.h"
2324
#include "zend.h"
2425
#include "ext/standard/basic_functions.h"
2526
#include "ext/standard/info.h"
@@ -1194,6 +1195,7 @@ static int parse_opt( int argc, char * argv[], int *climode,
11941195
case '?':
11951196
if ( *((*(p-1))+2) == 's' )
11961197
exit( 99 );
1198+
ZEND_FALLTHROUGH;
11971199
case 'h':
11981200
case 'i':
11991201
case 'l':

0 commit comments

Comments
 (0)