1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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' )
      |                ^
```
This commit is contained in:
Peter Kokot
2024-06-10 16:51:01 +02:00
committed by GitHub
parent 11a46b31d9
commit 550f840a22

View File

@@ -20,6 +20,7 @@
#include "php_ini.h"
#include "php_variables.h"
#include "zend_highlight.h"
#include "zend_portability.h"
#include "zend.h"
#include "ext/standard/basic_functions.h"
#include "ext/standard/info.h"
@@ -1194,6 +1195,7 @@ static int parse_opt( int argc, char * argv[], int *climode,
case '?':
if ( *((*(p-1))+2) == 's' )
exit( 99 );
ZEND_FALLTHROUGH;
case 'h':
case 'i':
case 'l':