Skip to content

Commit 154395a

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in cURL extension
1 parent f9feacd commit 154395a

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
@@ -2191,6 +2191,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
21912191
error = curl_easy_setopt(ch->cp, option, 2);
21922192
break;
21932193
}
2194+
fallthrough;
21942195
case CURLOPT_AUTOREFERER:
21952196
case CURLOPT_BUFFERSIZE:
21962197
case CURLOPT_CONNECTTIMEOUT:
@@ -2581,7 +2582,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
25812582
zend_value_error("%s(): The provided file handle must be writable", get_active_function_name());
25822583
return FAILURE;
25832584
}
2584-
/* break omitted intentionally */
2585+
fallthrough;
25852586
default:
25862587
error = curl_easy_setopt(ch->cp, option, fp);
25872588
break;

0 commit comments

Comments
 (0)