mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
vquic: fix unused variable warning reported by clang-tidy
Silencing (seen in new GHA/Linux H3 v20 job):
```
lib/vquic/vquic.c:398:37: error: variable 'calls' set but not used [clang-diagnostic-unused-but-set-variable]
398 | size_t total_nread = 0, pkts = 0, calls = 0;
| ^
```
Cherry-picked from #20751
Closes #20752
This commit is contained in:
parent
f76a54f890
commit
b2076d3c2f
1 changed files with 5 additions and 2 deletions
|
|
@ -395,7 +395,10 @@ static CURLcode recvmmsg_packets(struct Curl_cfilter *cf,
|
|||
struct mmsghdr mmsg[MMSG_NUM];
|
||||
uint8_t msg_ctrl[MMSG_NUM * CMSG_SPACE(sizeof(int))];
|
||||
struct sockaddr_storage remote_addr[MMSG_NUM];
|
||||
size_t total_nread = 0, pkts = 0, calls = 0;
|
||||
size_t total_nread = 0, pkts = 0;
|
||||
#ifdef CURLVERBOSE
|
||||
size_t calls = 0;
|
||||
#endif
|
||||
int mcount, i, n;
|
||||
char errstr[STRERROR_LEN];
|
||||
CURLcode result = CURLE_OK;
|
||||
|
|
@ -448,7 +451,7 @@ static CURLcode recvmmsg_packets(struct Curl_cfilter *cf,
|
|||
goto out;
|
||||
}
|
||||
|
||||
++calls;
|
||||
VERBOSE(++calls);
|
||||
for(i = 0; i < mcount; ++i) {
|
||||
/* A zero-length UDP packet is no QUIC packet. Ignore. */
|
||||
if(!mmsg[i].msg_len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue