mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:03:33 +03:00
tidy-up: delete, comment or scope C macros reported unused
To reduce the number `-Wunused-macro` compiler warnings: - delete unused macros. - comment out unused macro that are part of a set. - move macros into the scope they are used. This may be useful to enable by default, but there are tricky cases that I didn't manage to fix and paused the effort. E.g. internal features checks in `openssl.c`. There is more, once those are fixed. Closes #16279
This commit is contained in:
parent
edd013326d
commit
784a8ec2c1
36 changed files with 86 additions and 131 deletions
|
|
@ -932,15 +932,6 @@ static CURLcode socket_connect_result(struct Curl_easy *data,
|
|||
}
|
||||
}
|
||||
|
||||
/* We have a recv buffer to enhance reads with len < NW_SMALL_READS.
|
||||
* This happens often on TLS connections where the TLS implementation
|
||||
* tries to read the head of a TLS record, determine the length of the
|
||||
* full record and then make a subsequent read for that.
|
||||
* On large reads, we will not fill the buffer to avoid the double copy. */
|
||||
#define NW_RECV_CHUNK_SIZE (64 * 1024)
|
||||
#define NW_RECV_CHUNKS 1
|
||||
#define NW_SMALL_READS (1024)
|
||||
|
||||
struct cf_socket_ctx {
|
||||
int transport;
|
||||
struct Curl_sockaddr_ex addr; /* address to connect to */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue