From 5381cf9aa3f5fcbc70ba83c22069b054c0411d18 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 10 Jun 2024 09:00:41 +0200 Subject: [PATCH] Fix fall through warning in sapi/litespeed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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' ) | ^ ``` --- sapi/litespeed/lsapi_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index d3819c79175dd..d0a81c7cb6c77 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -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':