lib/altsvc.c+0 -1
| @@ -34,7 +34,6 @@ |
| #include "curl_get_line.h" |
| #include "parsedate.h" |
| #include "sendf.h" |
| - | #include "curlx/warnless.h" |
| #include "curlx/inet_pton.h" |
| #include "curlx/strparse.h" |
| #include "curlx/timeval.h" |
lib/cf-h2-proxy.c+0 -1
| @@ -43,7 +43,6 @@ |
| #include "multiif.h" |
| #include "sendf.h" |
| #include "select.h" |
| - | #include "curlx/warnless.h" |
| #include "cf-h2-proxy.h" |
| |
| #define PROXY_H2_CHUNK_SIZE (16 * 1024) |
lib/cf-socket.c+0 -1
| @@ -66,7 +66,6 @@ |
| #include "multiif.h" |
| #include "curlx/inet_pton.h" |
| #include "progress.h" |
| - | #include "curlx/warnless.h" |
| #include "conncache.h" |
| #include "multihandle.h" |
| #include "rand.h" |
lib/cfilters.c+0 -1
| @@ -32,7 +32,6 @@ |
| #include "sendf.h" |
| #include "progress.h" |
| #include "select.h" |
| - | #include "curlx/warnless.h" |
| #include "curlx/strparse.h" |
| |
| static void cf_cntrl_update_info(struct Curl_easy *data, |
lib/connect.c+0 -1
| @@ -64,7 +64,6 @@ |
| #include "curlx/strparse.h" |
| #include "vtls/vtls.h" /* for vtsl cfilters */ |
| #include "progress.h" |
| - | #include "curlx/warnless.h" |
| #include "conncache.h" |
| #include "multihandle.h" |
| #include "http_proxy.h" |
lib/curl_addrinfo.c+0 -1
| @@ -50,7 +50,6 @@ |
| #include "curl_addrinfo.h" |
| #include "fake_addrinfo.h" |
| #include "curlx/inet_pton.h" |
| - | #include "curlx/warnless.h" |
| |
| /* |
| * Curl_freeaddrinfo() |
lib/curl_ntlm_core.c+0 -1
| @@ -114,7 +114,6 @@ |
| #include "curl_ntlm_core.h" |
| #include "curl_md5.h" |
| #include "curl_hmac.h" |
| - | #include "curlx/warnless.h" |
| #include "curl_md4.h" |
| #include "vauth/vauth.h" |
| |
lib/curl_rtmp.c+0 -1
| @@ -34,7 +34,6 @@ |
| #include "progress.h" /* for Curl_pgrsSetUploadSize */ |
| #include "transfer.h" |
| #include "bufref.h" |
| - | #include "curlx/warnless.h" |
| |
| #include <librtmp/rtmp.h> |
| |
lib/curl_sasl.c+0 -1
| @@ -44,7 +44,6 @@ |
| #include "vauth/vauth.h" |
| #include "cfilters.h" |
| #include "curl_sasl.h" |
| - | #include "curlx/warnless.h" |
| #include "sendf.h" |
| |
| /* Supported mechanisms */ |
lib/curl_setup.h+12 -0
| @@ -779,6 +779,18 @@ |
| #include "curl_setup_once.h" |
| #endif |
| |
| + | /* |
| + | * Macros and functions to safely suppress warnings |
| + | */ |
| + | #include "curlx/warnless.h" |
| + | |
| + | #ifdef _WIN32 |
| + | # undef read |
| + | # define read(fd, buf, count) (ssize_t)_read(fd, buf, curlx_uztoui(count)) |
| + | # undef write |
| + | # define write(fd, buf, count) (ssize_t)_write(fd, buf, curlx_uztoui(count)) |
| + | #endif |
| + | |
| /* |
| * Definition of our NOP statement Object-like macro |
| */ |
lib/curl_sha512_256.c+0 -1
| @@ -27,7 +27,6 @@ |
| #if !defined(CURL_DISABLE_DIGEST_AUTH) && !defined(CURL_DISABLE_SHA512_256) |
| |
| #include "curl_sha512_256.h" |
| - | #include "curlx/warnless.h" |
| |
| /* The recommended order of the TLS backends: |
| * 1. OpenSSL |
lib/curl_sspi.c+0 -1
| @@ -29,7 +29,6 @@ |
| #include "curl_sspi.h" |
| #include "strdup.h" |
| #include "curlx/multibyte.h" |
| - | #include "curlx/warnless.h" |
| |
| /* Pointer to SSPI dispatch table */ |
| PSecurityFunctionTable Curl_pSecFn = NULL; |
lib/curlx/base64.c+0 -1
| @@ -26,7 +26,6 @@ |
| |
| #include "../curl_setup.h" |
| |
| - | #include "warnless.h" |
| #include "base64.h" |
| |
| /* ---- Base64 Encoding/Decoding Table --- */ |
lib/curlx/curlx.h+0 -8
| @@ -37,14 +37,6 @@ |
| #include "nonblock.h" |
| /* "nonblock.h" provides curlx_nonblock() */ |
| |
| - | #include "warnless.h" |
| - | /* "warnless.h" provides functions: |
| - | |
| - | curlx_ultous() |
| - | curlx_ultouc() |
| - | curlx_uztosi() |
| - | */ |
| - | |
| #include "multibyte.h" |
| /* "multibyte.h" provides these functions and macros: |
| |
lib/curlx/version_win32.c+0 -1
| @@ -27,7 +27,6 @@ |
| #ifdef _WIN32 |
| |
| #include "version_win32.h" |
| - | #include "warnless.h" |
| |
| /* This Unicode version struct works for VerifyVersionInfoW (OSVERSIONINFOEXW) |
| and RtlVerifyVersionInfo (RTLOSVERSIONINFOEXW) */ |
lib/curlx/warnless.h+0 -7
| @@ -73,11 +73,4 @@ bool curlx_sotouz_fits(curl_off_t sonum, size_t *puznum); |
| * and set 0 */ |
| bool curlx_sltouz(long sznum, size_t *puznum); |
| |
| - | #ifdef _WIN32 |
| - | #undef read |
| - | #define read(fd, buf, count) (ssize_t)_read(fd, buf, curlx_uztoui(count)) |
| - | #undef write |
| - | #define write(fd, buf, count) (ssize_t)_write(fd, buf, curlx_uztoui(count)) |
| - | #endif |
| - | |
| #endif /* HEADER_CURL_WARNLESS_H */ |
lib/easy.c+0 -1
| @@ -64,7 +64,6 @@ |
| #include "mime.h" |
| #include "amigaos.h" |
| #include "macos.h" |
| - | #include "curlx/warnless.h" |
| #include "curlx/wait.h" |
| #include "sigpipe.h" |
| #include "vssh/ssh.h" |
lib/escape.c+0 -1
| @@ -30,7 +30,6 @@ |
| struct Curl_easy; |
| |
| #include "urldata.h" |
| - | #include "curlx/warnless.h" |
| #include "escape.h" |
| #include "curlx/strparse.h" |
| #include "curl_printf.h" |
lib/file.c+0 -1
| @@ -65,7 +65,6 @@ |
| #include "parsedate.h" /* for the week day and month names */ |
| #include "curlx/fopen.h" |
| #include "curlx/timeval.h" |
| - | #include "curlx/warnless.h" |
| #include "curl_range.h" |
| |
| #if defined(_WIN32) || defined(MSDOS) |
lib/formdata.c+0 -1
| @@ -36,7 +36,6 @@ struct Curl_easy; |
| #include "strdup.h" |
| #include "bufref.h" |
| #include "curlx/fopen.h" |
| - | #include "curlx/warnless.h" |
| |
| |
| #define HTTPPOST_PTRNAME CURL_HTTPPOST_PTRNAME |
lib/ftp.c+0 -1
| @@ -64,7 +64,6 @@ |
| #include "sockaddr.h" /* required for Curl_sockaddr_storage */ |
| #include "multiif.h" |
| #include "url.h" |
| - | #include "curlx/warnless.h" |
| #include "http_proxy.h" |
| #include "strdup.h" |
| #include "curlx/strerr.h" |
lib/gopher.c+0 -1
| @@ -35,7 +35,6 @@ |
| #include "select.h" |
| #include "url.h" |
| #include "escape.h" |
| - | #include "curlx/warnless.h" |
| |
| /* |
| * Forward declarations. |
lib/hmac.c+0 -1
| @@ -31,7 +31,6 @@ |
| defined(USE_SSL) |
| |
| #include "curl_hmac.h" |
| - | #include "curlx/warnless.h" |
| |
| /* |
| * Generic HMAC algorithm. |
lib/hostip.c+0 -1
| @@ -56,7 +56,6 @@ |
| #include "curlx/inet_pton.h" |
| #include "multiif.h" |
| #include "doh.h" |
| - | #include "curlx/warnless.h" |
| #include "progress.h" |
| #include "select.h" |
| #include "strcase.h" |
lib/http.c+0 -1
| @@ -74,7 +74,6 @@ |
| #include "strcase.h" |
| #include "content_encoding.h" |
| #include "http_proxy.h" |
| - | #include "curlx/warnless.h" |
| #include "http2.h" |
| #include "cfilters.h" |
| #include "connect.h" |
lib/http2.c+0 -1
| @@ -46,7 +46,6 @@ |
| #include "transfer.h" |
| #include "bufref.h" |
| #include "curlx/dynbuf.h" |
| - | #include "curlx/warnless.h" |
| #include "headers.h" |
| |
| #if (NGHTTP2_VERSION_NUM < 0x010c00) |
lib/http_chunks.c+0 -1
| @@ -33,7 +33,6 @@ |
| #include "http.h" |
| #include "multiif.h" |
| #include "curlx/strparse.h" |
| - | #include "curlx/warnless.h" |
| |
| /* |
| * Chunk format (simplified): |
lib/idn.c+0 -1
| @@ -31,7 +31,6 @@ |
| #include "urldata.h" |
| #include "idn.h" |
| #include "sendf.h" |
| - | #include "curlx/warnless.h" |
| |
| #ifdef USE_LIBIDN2 |
| #include <idn2.h> |
lib/imap.c+0 -1
| @@ -72,7 +72,6 @@ |
| #include "url.h" |
| #include "bufref.h" |
| #include "curl_sasl.h" |
| - | #include "curlx/warnless.h" |
| |
| |
| /* meta key for storing protocol meta at easy handle */ |
lib/md4.c+0 -1
| @@ -27,7 +27,6 @@ |
| #ifdef USE_CURL_NTLM_CORE |
| |
| #include "curl_md4.h" |
| - | #include "curlx/warnless.h" |
| |
| #ifdef USE_OPENSSL |
| #include <openssl/opensslv.h> |
lib/md5.c+0 -1
| @@ -29,7 +29,6 @@ |
| |
| #include "curl_md5.h" |
| #include "curl_hmac.h" |
| - | #include "curlx/warnless.h" |
| |
| #ifdef USE_OPENSSL |
| #include <openssl/opensslconf.h> |
lib/mime.c+0 -1
| @@ -27,7 +27,6 @@ |
| struct Curl_easy; |
| |
| #include "mime.h" |
| - | #include "curlx/warnless.h" |
| #include "urldata.h" |
| #include "sendf.h" |
| #include "transfer.h" |
lib/mqtt.c+0 -1
| @@ -35,7 +35,6 @@ |
| #include "select.h" |
| #include "url.h" |
| #include "escape.h" |
| - | #include "curlx/warnless.h" |
| #include "rand.h" |
| |
| /* first byte is command. |
lib/multi.c+0 -1
| @@ -38,7 +38,6 @@ |
| #include "curlx/timeval.h" |
| #include "http.h" |
| #include "select.h" |
| - | #include "curlx/warnless.h" |
| #include "curlx/wait.h" |
| #include "conncache.h" |
| #include "multihandle.h" |
lib/multi_ev.c+0 -1
| @@ -34,7 +34,6 @@ |
| #include "select.h" |
| #include "uint-bset.h" |
| #include "uint-spbset.h" |
| - | #include "curlx/warnless.h" |
| #include "multihandle.h" |
| |
| |
lib/parsedate.c+0 -1
| @@ -77,7 +77,6 @@ |
| |
| #include "curl_setup.h" |
| |
| - | #include "curlx/warnless.h" |
| #include "parsedate.h" |
| #include "curlx/strparse.h" |
| |
lib/pop3.c+0 -1
| @@ -72,7 +72,6 @@ |
| #include "bufref.h" |
| #include "curl_sasl.h" |
| #include "curl_md5.h" |
| - | #include "curlx/warnless.h" |
| #include "strdup.h" |
| |
| /* Authentication type flags */ |
lib/select.c+0 -1
| @@ -40,7 +40,6 @@ |
| #include "curl_trc.h" |
| #include "curlx/timediff.h" |
| #include "curlx/wait.h" |
| - | #include "curlx/warnless.h" |
| |
| #ifndef HAVE_POLL |
| /* |
lib/sendf.c+0 -1
| @@ -45,7 +45,6 @@ |
| #include "strerror.h" |
| #include "http2.h" |
| #include "progress.h" |
| - | #include "curlx/warnless.h" |
| |
| |
| static CURLcode do_init_writer_stack(struct Curl_easy *data); |
lib/setopt.c+0 -1
| @@ -41,7 +41,6 @@ |
| #include "strcase.h" |
| #include "curl_share.h" |
| #include "vtls/vtls.h" |
| - | #include "curlx/warnless.h" |
| #include "sendf.h" |
| #include "hostip.h" |
| #include "http2.h" |
lib/sha256.c+0 -1
| @@ -28,7 +28,6 @@ |
| #if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) || \ |
| defined(USE_LIBSSH2) || defined(USE_SSL) |
| |
| - | #include "curlx/warnless.h" |
| #include "curl_sha256.h" |
| |
| #ifdef USE_MBEDTLS |
lib/smtp.c+0 -1
| @@ -74,7 +74,6 @@ |
| #include "curl_gethostname.h" |
| #include "bufref.h" |
| #include "curl_sasl.h" |
| - | #include "curlx/warnless.h" |
| #include "idn.h" |
| #include "curlx/strparse.h" |
| |
lib/socks_gssapi.c+0 -1
| @@ -35,7 +35,6 @@ |
| #include "curlx/nonblock.h" |
| #include "curlx/timeval.h" |
| #include "socks.h" |
| - | #include "curlx/warnless.h" |
| #include "strdup.h" |
| |
| #if defined(__GNUC__) && defined(__APPLE__) |
lib/socks_sspi.c+0 -1
| @@ -37,7 +37,6 @@ |
| #include "socks.h" |
| #include "curl_sspi.h" |
| #include "curlx/multibyte.h" |
| - | #include "curlx/warnless.h" |
| |
| /* |
| * Helper sspi error functions. |
lib/system_win32.c+0 -1
| @@ -29,7 +29,6 @@ |
| #include "system_win32.h" |
| #include "curlx/version_win32.h" |
| #include "curl_sspi.h" |
| - | #include "curlx/warnless.h" |
| |
| #ifndef HAVE_IF_NAMETOINDEX |
| /* Handle of iphlpapp.dll */ |
lib/telnet.c+0 -1
| @@ -55,7 +55,6 @@ |
| #include "progress.h" |
| #include "arpa_telnet.h" |
| #include "select.h" |
| - | #include "curlx/warnless.h" |
| #include "curlx/strparse.h" |
| |
| #define SUBBUFSIZE 512 |
lib/transfer.c+0 -1
| @@ -74,7 +74,6 @@ |
| #include "setopt.h" |
| #include "headers.h" |
| #include "bufref.h" |
| - | #include "curlx/warnless.h" |
| |
| #if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_SMTP) || \ |
| !defined(CURL_DISABLE_IMAP) |
lib/uint-bset.c+1 -0
| @@ -23,6 +23,7 @@ |
| ***************************************************************************/ |
| |
| #include "curl_setup.h" |
| + | |
| #include "uint-bset.h" |
| |
| #ifdef DEBUGBUILD |
lib/url.c+0 -1
| @@ -82,7 +82,6 @@ |
| #include "curl_share.h" |
| #include "http_digest.h" |
| #include "multiif.h" |
| - | #include "curlx/warnless.h" |
| #include "getinfo.h" |
| #include "pop3.h" |
| #include "urlapi-int.h" |
lib/vauth/cleartext.c+0 -1
| @@ -32,7 +32,6 @@ |
| (!defined(CURL_DISABLE_LDAP) && defined(USE_OPENLDAP)) |
| |
| #include "vauth.h" |
| - | #include "../curlx/warnless.h" |
| #include "../sendf.h" |
| |
| /* |
lib/vauth/cram.c+0 -1
| @@ -31,7 +31,6 @@ |
| #include "vauth.h" |
| #include "../curl_hmac.h" |
| #include "../curl_md5.h" |
| - | #include "../curlx/warnless.h" |
| |
| |
| /* |
lib/vauth/digest.c+0 -1
| @@ -35,7 +35,6 @@ |
| #include "../curl_md5.h" |
| #include "../curl_sha256.h" |
| #include "../curl_sha512_256.h" |
| - | #include "../curlx/warnless.h" |
| #include "../curlx/strparse.h" |
| #include "../rand.h" |
| |
lib/vauth/digest_sspi.c+0 -1
| @@ -31,7 +31,6 @@ |
| |
| #include "vauth.h" |
| #include "digest.h" |
| - | #include "../curlx/warnless.h" |
| #include "../curlx/multibyte.h" |
| #include "../sendf.h" |
| #include "../strdup.h" |
lib/vauth/krb5_sspi.c+0 -1
| @@ -29,7 +29,6 @@ |
| #if defined(USE_WINDOWS_SSPI) && defined(USE_KERBEROS5) |
| |
| #include "vauth.h" |
| - | #include "../curlx/warnless.h" |
| #include "../sendf.h" |
| |
| /* |
lib/vauth/ntlm.c+0 -1
| @@ -38,7 +38,6 @@ |
| #include "vauth.h" |
| #include "../sendf.h" |
| #include "../curl_ntlm_core.h" |
| - | #include "../curlx/warnless.h" |
| #include "../rand.h" |
| #include "../strdup.h" |
| #include "../curl_endian.h" |
lib/vauth/ntlm_sspi.c+0 -1
| @@ -28,7 +28,6 @@ |
| |
| #include "vauth.h" |
| #include "../curl_ntlm_core.h" |
| - | #include "../curlx/warnless.h" |
| #include "../sendf.h" |
| #include "../strdup.h" |
| |
lib/vauth/oauth2.c+0 -1
| @@ -31,7 +31,6 @@ |
| (!defined(CURL_DISABLE_LDAP) && defined(USE_OPENLDAP)) |
| |
| #include "vauth.h" |
| - | #include "../curlx/warnless.h" |
| |
| /* |
| * Curl_auth_create_oauth_bearer_message() |
lib/vauth/spnego_gssapi.c+0 -1
| @@ -31,7 +31,6 @@ |
| #include "vauth.h" |
| #include "../curlx/base64.h" |
| #include "../curl_gssapi.h" |
| - | #include "../curlx/warnless.h" |
| #include "../sendf.h" |
| |
| #if defined(__GNUC__) && defined(__APPLE__) |
lib/vauth/spnego_sspi.c+0 -1
| @@ -30,7 +30,6 @@ |
| |
| #include "vauth.h" |
| #include "../curlx/base64.h" |
| - | #include "../curlx/warnless.h" |
| #include "../sendf.h" |
| #include "../strerror.h" |
| |
lib/vquic/curl_ngtcp2.c+0 -2
| @@ -69,8 +69,6 @@ |
| #include "../vtls/vtls_scache.h" |
| #include "curl_ngtcp2.h" |
| |
| - | #include "../curlx/warnless.h" |
| - | |
| |
| #define QUIC_MAX_STREAMS (256 * 1024) |
| #define QUIC_HANDSHAKE_TIMEOUT (10 * NGTCP2_SECONDS) |
lib/vquic/curl_osslq.c+0 -1
| @@ -52,7 +52,6 @@ |
| #include "curl_osslq.h" |
| #include "../url.h" |
| #include "../bufref.h" |
| - | #include "../curlx/warnless.h" |
| #include "../curlx/strerr.h" |
| |
| /* A stream window is the maximum amount we need to buffer for |
lib/vquic/curl_quiche.c+0 -1
| @@ -47,7 +47,6 @@ |
| #include "../transfer.h" |
| #include "../url.h" |
| #include "../bufref.h" |
| - | #include "../curlx/warnless.h" |
| #include "../vtls/openssl.h" |
| #include "../vtls/keylog.h" |
| #include "../vtls/vtls.h" |
lib/vquic/vquic.c+0 -1
| @@ -34,7 +34,6 @@ |
| #include "../bufq.h" |
| #include "../curlx/dynbuf.h" |
| #include "../curlx/fopen.h" |
| - | #include "../curlx/warnless.h" |
| #include "../cfilters.h" |
| #include "../curl_trc.h" |
| #include "curl_ngtcp2.h" |
lib/vssh/libssh.c+0 -1
| @@ -57,7 +57,6 @@ |
| #include "../curlx/strparse.h" |
| #include "../multiif.h" |
| #include "../select.h" |
| - | #include "../curlx/warnless.h" |
| #include "vssh.h" |
| |
| #ifdef HAVE_UNISTD_H |
lib/vssh/libssh2.c+0 -1
| @@ -56,7 +56,6 @@ |
| #include "../multiif.h" |
| #include "../select.h" |
| #include "../curlx/fopen.h" |
| - | #include "../curlx/warnless.h" |
| #include "vssh.h" |
| #include "../curlx/strparse.h" |
| #include "../curlx/base64.h" /* for base64 encoding/decoding */ |
lib/vtls/gtls.c+0 -1
| @@ -55,7 +55,6 @@ |
| #include "../strdup.h" |
| #include "../curlx/fopen.h" |
| #include "../curlx/timeval.h" |
| - | #include "../curlx/warnless.h" |
| #include "x509asn1.h" |
| |
| /* Enable GnuTLS debugging by defining GTLSDEBUG */ |
lib/vtls/openssl.c+0 -2
| @@ -119,8 +119,6 @@ static void ossl_provider_cleanup(struct Curl_easy *data); |
| #define HAVE_SSL_CTX_SET_DEFAULT_READ_BUFFER_LEN 1 |
| #endif |
| |
| - | #include "../curlx/warnless.h" |
| - | |
| #if defined(USE_OPENSSL_ENGINE) || defined(OPENSSL_HAS_PROVIDERS) |
| #include <openssl/ui.h> |
| #endif |
lib/vtls/schannel.c+0 -1
| @@ -49,7 +49,6 @@ |
| #include "../select.h" /* for the socket readiness */ |
| #include "../curlx/fopen.h" |
| #include "../curlx/multibyte.h" |
| - | #include "../curlx/warnless.h" |
| #include "x509asn1.h" |
| #include "../system_win32.h" |
| #include "../curlx/version_win32.h" |
lib/vtls/vtls.c+0 -1
| @@ -66,7 +66,6 @@ |
| #include "../curlx/fopen.h" |
| #include "../curlx/timeval.h" |
| #include "../curl_sha256.h" |
| - | #include "../curlx/warnless.h" |
| #include "../curlx/base64.h" |
| #include "../curlx/inet_pton.h" |
| #include "../connect.h" |
lib/vtls/vtls_scache.c+0 -1
| @@ -45,7 +45,6 @@ |
| #include "../curl_trc.h" |
| #include "../curl_sha256.h" |
| #include "../rand.h" |
| - | #include "../curlx/warnless.h" |
| |
| |
| static bool cf_ssl_peer_key_is_global(const char *peer_key); |
lib/ws.c+0 -1
| @@ -39,7 +39,6 @@ |
| #include "transfer.h" |
| #include "select.h" |
| #include "curlx/strparse.h" |
| - | #include "curlx/warnless.h" |
| |
| /*** |
| RFC 6455 Section 5.2 |