Skip to content

Commit c2e69ea

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in cURL extension
1 parent 39591b4 commit c2e69ea

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
@@ -2216,6 +2216,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
22162216
error = curl_easy_setopt(ch->cp, option, 2);
22172217
break;
22182218
}
2219+
fallthrough;
22192220
case CURLOPT_AUTOREFERER:
22202221
case CURLOPT_BUFFERSIZE:
22212222
case CURLOPT_CONNECTTIMEOUT:
@@ -2605,7 +2606,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
26052606
zend_value_error("%s(): The provided file handle must be writable", get_active_function_name());
26062607
return FAILURE;
26072608
}
2608-
/* break omitted intentionally */
2609+
fallthrough;
26092610
default:
26102611
error = curl_easy_setopt(ch->cp, option, fp);
26112612
break;

0 commit comments

Comments
 (0)