Skip to content

Commit 5f8867a

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in cURL extension
1 parent 66df696 commit 5f8867a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/curl/interface.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
21842184
error = curl_easy_setopt(ch->cp, option, 2);
21852185
break;
21862186
}
2187+
fallthrough;
21872188
case CURLOPT_AUTOREFERER:
21882189
case CURLOPT_BUFFERSIZE:
21892190
case CURLOPT_CONNECTTIMEOUT:
@@ -2571,7 +2572,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
25712572
zend_value_error("%s(): The provided file handle must be writable", get_active_function_name());
25722573
return FAILURE;
25732574
}
2574-
/* break omitted intentionally */
2575+
fallthrough;
25752576
default:
25762577
error = curl_easy_setopt(ch->cp, option, fp);
25772578
break;

0 commit comments

Comments
 (0)