1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 03:55:03 -05:00
curl/tests/server
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
..
.gitignore git: add tests/server/disabled to .gitignore 2019-09-30 18:01:05 +02:00
base64.pl scripts: allow all perl scripts to be run directly 2018-01-07 15:42:11 -05:00
CMakeLists.txt build: Disable Visual Studio warning "conditional expression is constant" 2019-12-01 19:01:02 -05:00
disabled.c tests: have runtests figure out disabled features 2019-06-17 16:08:00 +02:00
fake_ntlm.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
getpart.c cppcheck: fix warnings 2018-06-11 11:14:48 +02:00
getpart.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
Makefile.am makefile: make checksrc and hugefile commands "silent" 2019-03-14 20:11:24 +01:00
Makefile.inc tests: have runtests figure out disabled features 2019-06-17 16:08:00 +02:00
resolve.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
rtspd.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
server_setup.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
server_sockaddr.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
sockfilt.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
socksd.c build: fix Codacy warnings 2019-06-05 20:38:06 +02:00
sws.c sws: remove unused variables 2019-06-05 20:37:56 +02:00
testpart.c whitespace fixes 2018-09-23 22:24:02 +00:00
tftp.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
tftpd.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
util.c strerror: Fix an error looking up some Windows error strings 2019-11-09 18:07:59 -05:00
util.h timediff: return timediff_t from the time diff functions 2017-10-25 09:54:37 +02:00