1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 14:08:07 -05:00
curl/lib/vtls
Jay Satiro 9c1806ae46 build: Disable Visual Studio warning "conditional expression is constant"
- Disable warning C4127 "conditional expression is constant" globally
  in curl_setup.h for when building with Microsoft's compiler.

This mainly affects building with the Visual Studio project files found
in the projects dir.

Prior to this change the cmake and winbuild build systems already
disabled 4127 globally for when building with Microsoft's compiler.
Also, 4127 was already disabled for all build systems in the limited
circumstance of the WHILE_FALSE macro which disabled the warning
specifically for while(0). This commit removes the WHILE_FALSE macro and
all other cruft in favor of disabling globally in curl_setup.

Background:

We have various macros that cause 0 or 1 to be evaluated, which would
cause warning C4127 in Visual Studio. For example this causes it:

    #define Curl_resolver_asynch() 1

Full behavior is not clearly defined and inconsistent across versions.
However it is documented that since VS 2015 Update 3 Microsoft has
addressed this somewhat but not entirely, not warning on while(true) for
example.

Prior to this change some C4127 warnings occurred when I built with
Visual Studio using the generated projects in the projects dir.

Closes https://github.com/curl/curl/pull/4658
2019-12-01 19:01:02 -05:00
..
bearssl.c TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
bearssl.h TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
gskit.c gskit: use the generic Curl_socketpair 2019-10-10 11:04:38 +02:00
gskit.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
gtls.c gtls: make gnutls_bye() not wait for response on shutdown 2019-10-31 09:10:50 +01:00
gtls.h vtls: fold the backend ID into the Curl_ssl structure 2017-08-28 14:56:58 +02:00
mbedtls.c mbedtls: add error message for cert validity starting in the future 2019-11-02 22:59:13 +01:00
mbedtls.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
mesalink.c vtls: fix narrowing conversion warnings 2019-09-23 09:44:35 +02:00
mesalink.h vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00
nss.c build: Disable Visual Studio warning "conditional expression is constant" 2019-12-01 19:01:02 -05:00
nssg.h vtls: fold the backend ID into the Curl_ssl structure 2017-08-28 14:56:58 +02:00
openssl.c build: Disable Visual Studio warning "conditional expression is constant" 2019-12-01 19:01:02 -05:00
openssl.h vtls: fold the backend ID into the Curl_ssl structure 2017-08-28 14:56:58 +02:00
polarssl_threadlock.c copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
polarssl_threadlock.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
polarssl.c vtls: fix narrowing conversion warnings 2019-09-23 09:44:35 +02:00
polarssl.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
schannel_verify.c strerror: Add Curl_winapi_strerror for Win API specific errors 2019-12-01 18:12:36 -05:00
schannel.c schannel: fix --tls-max for when min is --tlsv1 or default 2019-11-24 03:16:26 -05:00
schannel.h schannel: use Curl_ prefix for global private symbols 2018-11-01 09:39:45 +01:00
sectransp.c vtls: Fix comment typo about macosx-version-min compiler flag 2019-09-27 01:46:49 -04:00
sectransp.h Secure Transport: no more "darwinssl" 2019-02-28 08:42:59 +01:00
vtls.c TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
vtls.h TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
wolfssl.c wolfssl: fix key pinning build error 2019-06-11 07:46:04 +02:00
wolfssl.h wolfssl: refer to it as wolfSSL only 2019-06-10 09:18:16 +02:00