]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
warnless: drop parts of the `read`/`write` preprocessor hack (Windows)
authorViktor Szakats <commit@vsz.me>
Thu, 19 Jun 2025 12:41:34 +0000 (14:41 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 19 Jun 2025 15:09:43 +0000 (17:09 +0200)
The `#undef` hack is no longer necessary after changing the redifitions
to not map back to the original symbols.

This makes it unnecessary to repeat the redefinitions after compiling
`warnless.c` itself (in unity mode).

Which in turns makes it unnecessary to include `warnless.h` again, to
trigger such redefinition.

This also means that `read`/`write` are now redefined on Windows from
the first inclusion of `warnless.h`.

Also:
- tests/server: drop a repeat `warnless.h` include, that is unnecessary
  after this patch.
- tests/unit: drop repeat `warnless.h` include.
- tests/libtest: drop repeat `warnless.h` includes.
- tests/libtest: formatting.

Follow-up to 2f312a14da94068d58b6a39f79f82acd0bf82149 #17619
Follow-up to 84338c4de2d7c798e3c270c9610d51a4ad18a90b #12331
Follow-up to 6239146e931fd3127f6994975a56d1b4884a708a

Closes #17673

97 files changed:
lib/curlx/warnless.c
lib/curlx/warnless.h
tests/libtest/lib1485.c
tests/libtest/lib1500.c
tests/libtest/lib1501.c
tests/libtest/lib1502.c
tests/libtest/lib1506.c
tests/libtest/lib1507.c
tests/libtest/lib1508.c
tests/libtest/lib1509.c
tests/libtest/lib1510.c
tests/libtest/lib1515.c
tests/libtest/lib1522.c
tests/libtest/lib1523.c
tests/libtest/lib1531.c
tests/libtest/lib1540.c
tests/libtest/lib1541.c
tests/libtest/lib1542.c
tests/libtest/lib1552.c
tests/libtest/lib1553.c
tests/libtest/lib1554.c
tests/libtest/lib1556.c
tests/libtest/lib1557.c
tests/libtest/lib1558.c
tests/libtest/lib1559.c
tests/libtest/lib1560.c
tests/libtest/lib1564.c
tests/libtest/lib1565.c
tests/libtest/lib1591.c
tests/libtest/lib1592.c
tests/libtest/lib1598.c
tests/libtest/lib1900.c
tests/libtest/lib1901.c
tests/libtest/lib1903.c
tests/libtest/lib1905.c
tests/libtest/lib1906.c
tests/libtest/lib1907.c
tests/libtest/lib1908.c
tests/libtest/lib1910.c
tests/libtest/lib1911.c
tests/libtest/lib1912.c
tests/libtest/lib1913.c
tests/libtest/lib1915.c
tests/libtest/lib1916.c
tests/libtest/lib1918.c
tests/libtest/lib1919.c
tests/libtest/lib1977.c
tests/libtest/lib2023.c
tests/libtest/lib2032.c
tests/libtest/lib2306.c
tests/libtest/lib2308.c
tests/libtest/lib2309.c
tests/libtest/lib2402.c
tests/libtest/lib2404.c
tests/libtest/lib2405.c
tests/libtest/lib2502.c
tests/libtest/lib2700.c
tests/libtest/lib3026.c
tests/libtest/lib3027.c
tests/libtest/lib3100.c
tests/libtest/lib3101.c
tests/libtest/lib3105.c
tests/libtest/lib3207.c
tests/libtest/lib3208.c
tests/libtest/lib502.c
tests/libtest/lib503.c
tests/libtest/lib504.c
tests/libtest/lib507.c
tests/libtest/lib518.c
tests/libtest/lib525.c
tests/libtest/lib526.c
tests/libtest/lib530.c
tests/libtest/lib533.c
tests/libtest/lib537.c
tests/libtest/lib540.c
tests/libtest/lib552.c
tests/libtest/lib555.c
tests/libtest/lib556.c
tests/libtest/lib560.c
tests/libtest/lib564.c
tests/libtest/lib571.c
tests/libtest/lib573.c
tests/libtest/lib575.c
tests/libtest/lib582.c
tests/libtest/lib586.c
tests/libtest/lib591.c
tests/libtest/lib597.c
tests/libtest/lib658.c
tests/libtest/lib659.c
tests/libtest/lib661.c
tests/libtest/lib674.c
tests/libtest/lib677.c
tests/libtest/lib678.c
tests/libtest/lib751.c
tests/libtest/lib753.c
tests/server/sockfilt.c
tests/unit/unit1309.c

index 8e3fa1710788f171cba2e405c74ae79c415442c4..c6cb7c6e5e38de3b936227f5942cffdff4fbc209 100644 (file)
 
 #endif /* __INTEL_COMPILER && __unix__ */
 
-#ifdef _WIN32
-#undef read
-#undef write
-#endif
-
 #include <limits.h>
 
 #define CURL_MASK_UCHAR   ((unsigned char)~0)
@@ -295,7 +290,3 @@ size_t curlx_sitouz(int sinum)
 #  pragma warning(pop)
 #endif
 }
-
-/* Ensure that warnless.h redefinitions continue to have an effect
-   in "unity" builds. */
-#undef HEADER_CURL_WARNLESS_H_REDEFS
index c105feb87ed72043fc6b897d5a3c1fe567f6e809..0a0c60807340b876ee1d9ec8ff2a55cc70472907 100644 (file)
@@ -57,11 +57,6 @@ unsigned short curlx_uitous(unsigned int uinum);
 
 size_t curlx_sitouz(int sinum);
 
-#endif /* HEADER_CURL_WARNLESS_H */
-
-#ifndef HEADER_CURL_WARNLESS_H_REDEFS
-#define HEADER_CURL_WARNLESS_H_REDEFS
-
 #ifdef _WIN32
 #undef  read
 #define read(fd, buf, count)  (ssize_t)_read(fd, buf, curlx_uztoui(count))
@@ -69,4 +64,4 @@ size_t curlx_sitouz(int sinum);
 #define write(fd, buf, count) (ssize_t)_write(fd, buf, curlx_uztoui(count))
 #endif
 
-#endif /* HEADER_CURL_WARNLESS_H_REDEFS */
+#endif /* HEADER_CURL_WARNLESS_H */
index 9a8e7a297a6f3c09ee93d60e4a68c02475bb4646..6281c2f60d3d5d7c3b9856819b27deb4cbe73ce6 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t1485_transfer_status {
index dc9e662399ec57879195f8f0a8eab5d19ad5c268..46f0268248502f52721899f2f8dac0e00792c29d 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1500(char *URL)
index 0afbda1cf5caf053809df6af3d0bb3d81173fa65..89e35c51283e0c22f6cb7e961498a862b82e963f 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #undef TEST_HANG_TIMEOUT
index 38783802f20868cb77d60c61ab12fbdf076a77c8..858b4be4ca87a0b7cda22e3838568fa991a0553a 100644 (file)
@@ -34,7 +34,6 @@
 #include <limits.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1502(char *URL)
index b47eb4af0633f8472814be79d7279fcc24730ffd..569a65950f3f1b1455e6e4515efc6c9eefa1481b 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1506(char *URL)
index edbce6ca2b8aba719932d032ff567311f5a4e623..b94e92a85f91c7db7b388b490466a911e1bb8b5a 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "timediff.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 488242b56f7f41f47d49fd51d5e407b14cb8676c..b80d7858cd923aa21b186adcbab4e9239d3f4a6e 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1508(char *URL)
index ba74b2f59ed7e637f2505ddedf687b29c41c351d..a9e8a880b3f28df4c969a5ad26dd61071984d0ce 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream);
index 14d75fec07b21130f68c290d492d6c227250eea4..56261e1f53e3810d978eced58c4ae866d97eacf5 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1510(char *URL)
index 11cdef6677879f7ad82ad802b98b6ffdc2193229..df82b2a81d130029b14311cbe84e0feac9ea23b1 100644 (file)
@@ -29,9 +29,9 @@
  */
 
 #include "test.h"
+
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define DNS_TIMEOUT 1L
index 5fe4283abc966b9f9498e6de49383db650b9f722..f225b98c3297fdb41498949896e02dc863c444a6 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static int sockopt_callback(void *clientp, curl_socket_t curlfd,
index 4003e9faf4951f153024caaafd3f688b19ef4889..480d569afbe499079ff3cb77a239cbadfcd6ba41 100644 (file)
@@ -26,7 +26,6 @@
 /* test case and code based on https://github.com/curl/curl/issues/3927 */
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static int dload_progress_cb(void *a, curl_off_t b, curl_off_t c,
index 50698d0b4c1f892e1a00a7e1b8491b5b8aa2aa40..32e8abdfbcd88e0d7692aef373abd0bb44d87dd0 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "timediff.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1531(char *URL)
index ac3271334f9adc1405b6435f7812289a756fa445..0ed265c42a045de1b366b52afe2f84fa787ed257 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t1540_transfer_status {
index 762b58145418680408a6cc3100ff15b68a78813a..9ef42a2adff6355a95ff3e7900928a6942d7b0e5 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t1541_transfer_status {
index 95ffbf1d77ebea65c8091ea46433464fd5458e5e..00c44dc17a6c2e9e9bc82caede883f8c34648f2c 100644 (file)
@@ -31,9 +31,9 @@
  */
 
 #include "test.h"
+
 #include "testutil.h"
 #include "testtrace.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1542(char *URL)
index 86fccf270e08256a71167e59e6b238afa0e0eed3..ffd08dc2c2bdbf6ed8ae2072597e86fd02a50a16 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1552(char *URL)
index 409835ac41bc312b0fc58cd24e20f451f8e08435..317d8c8c578f723d8f219c3f065f7fbd62e07ceb 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "testtrace.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static int t1553_xferinfo(void *p,
index 825c52971d5c3db9ca9651ac3a69fe0a16dc12a8..6e7717fa35786b23c9e701d52eb5f31e77b262f8 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "memdebug.h"
 
 static const char *ldata_names[] = {
index ff7e1ea77824b8c3fa6e8526a1e62fdc8fbe43b4..7e7ee1e07c65d014291b08da77a7d9054aa1ac47 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct headerinfo {
index 9df49fd94fcafc742461f59519e212c5cb6ed5d0..19012c35cb85ee10d82ad47323f5365968239de3 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1557(char *URL)
index 8fa38abd0dfe412181af3f12fe5ea3d8dfaace77..d0a9004ec43b5bbf324ab5a8ea8bd75623fe8825 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1558(char *URL)
index 71d430f00f1f089b10bd05a38496c11b7b56b8ae..efc176333fb824dad77c1ca09a6dff64d847b58c 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1559(char *URL)
index f436cc15b59f704d1012e53da52bc1774be0d92d..e78a0a2e3341bb777a60396346de1baab014b89b 100644 (file)
@@ -36,7 +36,6 @@
 #endif
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h" /* LAST include file */
 
 static int checkparts(CURLU *u, const char *in, const char *wanted,
index 822bca54cc6ea85fa6da6db63a5a26a7952cd7fb..e733f0d707698b2854f50cddd378ab94db932a44 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define WAKEUP_NUM 10
index 455a3026e4be0017a2665a2306204492381cdb09..76a66c45480c01e4afff440ca0bbde5140872ee6 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #ifdef HAVE_PTHREAD_H
index bdbe26dd97caeaaf0c54cc259074aa6218723b77..a601f19574d20f7f1bc134c8c32a63dd26c5089c 100644 (file)
@@ -28,7 +28,9 @@
  */
 
 #include "test.h"
+
 #include <stdio.h>
+
 #include "memdebug.h"
 
 static size_t consumed = 0;
index 3940233983d6ed4de1da350437cfd6a619b97f5a..2331664c7c889593f12b48a6679caab16657b6be 100644 (file)
@@ -37,6 +37,7 @@
    CI machines. */
 
 #include "test.h"
+
 #include "testutil.h"
 
 #include <sys/stat.h>
index d636fa4d34b4a2838b81ffe26211bc92f3ebdcfc..cba749b7d347efec315a7e424e80dcf5f466ecc7 100644 (file)
@@ -28,7 +28,9 @@
  */
 
 #include "test.h"
+
 #include <stdio.h>
+
 #include "memdebug.h"
 
 /*
index 6a1d6343fd617cd0e42a0a145267a3a8dfb71355..4f58fda2c59f3512b83714ab0bedc3b843f74964 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1900(char *URL)
index 5aee9d3cf73b07faaf4f25cc44fec83bcd2e68c8..c6199cf00339e80069ca1e7fbcf9425c1160cf61 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static size_t t1901_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
index edd2a096197671bd383c8c3b3aeddf7dc8974b02..d2171746b4ca5794401a0aa7304bdb343ca84dd5 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "timediff.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1903(char *URL)
index e7fbc366d0b32cf624f14c39300536944508b054..e0cb311530d320370370c01dd0d069e3b1b8af9a 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "timediff.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1905(char *URL)
index e49d9bf304013eed5a13564fdc924202dad4b724..89eef4fb9c667c59fd4a367a60aa2702a54f81b8 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1906(char *URL)
index f1d33c6ca69173196c287c5e42f347aa33b98157..6591023b08616d5767c77bee3664123103bcccd4 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1907(char *URL)
index e5f743adea0cdeb25a9c22b033fc1516498d1734..498d94b41f1750f331a29aec2519d3652b1942cc 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1908(char *URL)
index c22244b6be43ed747e31c7252d0ef6663e35dde0..58d40c43054271edd3c1c4e86efed8f6c9e77c26 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1910(char *URL)
index f6c3926be5fb8f2b3c23bed29a7a55dada90abf0..e76455d55fbc4f2c3d10883e727fea66e6e141f0 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /* The maximum string length limit (CURL_MAX_INPUT_LENGTH) is an internal
index 70edc95a7afca51b0b13215a0221495fda429b9e..19ea5b6eb01c47ae7a398ec539bef1800afd9caf 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define print_err(name, exp)                                            \
index 637f667d656e57f039ff68952760f4f306569f42..c7d526c918d5afb7c0318f7b5ff2c6c170fd20ac 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1913(char *URL)
index ec38eeabca366394a54fd72b396a17b5706f7ed1..bb7fa3043f81c365b268834d7b4a5087d439e0ba 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct state {
index c15db6331560124b801f166ef2548dc2809af03e..716d405b5f51c2ce1e7a19ce56121c13481b2872 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "test.h"
 
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1916(char *URL)
index e50ac8ed015cb0ee2109ce10f81e4991f209e62d..bf26e849d51300255f62695a9c6085dce09d9e24 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1918(char *URL)
index faf172af37a943863fd483d1774c560dd2bcf09c..43b362f8518d81629b4d2a04df9a4f526c104853 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1919(char *URL)
index 3c5fc7eadaecc4a878384b281a120075ca141996..53ad7d55bdd80f8a1cc45b4817a3050ef4256114 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1977(char *URL)
index 2ad7f694db1b326f26f31bc10ef72e9cdf73306c..8359bdef33f9f71bdb4962b35fc2927ed2cd91d6 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include "test.h"
+
 #include "memdebug.h"
 
 static CURLcode send_request(CURL *curl, const char *url, int seq,
index 61c191afaf370f2d0b4c85ae18d3be7015df7569..9d5a1ea61ca60bcbd3bc0b2b55d836ab4071983d 100644 (file)
@@ -27,7 +27,6 @@
 #include <assert.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define MAX_EASY_HANDLES 3
index 6dcd982924c36b5ef7bb7296c5985cdafadabd72..3adaedc7b62ca7b781eb17008a41d29dceaf55dd 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "testtrace.h"
 
 static CURLcode test_lib2306(char *URL)
index b91feef3a5653cac8dc56d17105a1170656ed981..d921f53b929387c3302be94d1ca401ffba863c97 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "testtrace.h"
 
 static size_t cb_curl(char *buffer, size_t size, size_t nmemb, void *userp)
index 885896156945388c15b8492e84e7eb7a4b07d5c7..aff7bb7ef5e2d4a7a24b7f2dee93018c0cfec283 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "testtrace.h"
 
 static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp)
index c7b52027c06eb18552225526904a3efe62270517..5a036881c5d15097727873f96c3bf0aaeef57411 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2402(char *URL)
index a8c9ed18270923f3025ebe2e005e5b49c2c10236..c9383c48e75cbf7d34f01b40c98e725fb0ecffc9 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2404(char *URL)
index c2a8ccd41b7cf08086b3a2bbbb0c12d811539561..d7f39f37f38f8890bfbb0dd99dc6d353d34a8a0f 100644 (file)
@@ -40,7 +40,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /* ---------------------------------------------------------------- */
index 9b1f8ab73409f0b844673c529fc7c716ec67c3ba..fe1b9c7838fdddcf259617366de6a636bd592a26 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2502(char *URL)
index 53f271a17f64ccd78f7328431030f60f81c0227e..37258a0fd990fad9065fb05114f053e417524f8f 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "testtrace.h"
 #include "memdebug.h"
 
index a5b442936dd34803468af50a326e39625542548c..50d2d40995d5b7f0cb46c05f96bd056d020e00fe 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 
 #define NUM_THREADS 100
 
index f13e35b6451cbff816a2ec02f49192b741e6fa6b..1ffd58458ac02764668c466a3fd4b2341f48b107 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3027(char *URL)
index 77aee5b151f057021c80554344f487bc483210ab..0b22f86de26e786732acfe702ff8feb4d8251244 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "memdebug.h"
 
 static CURLcode test_lib3100(char *URL)
index a7d8abf4cb4e264bfaa398774c0fdfbcda062bdb..7a63d8a173383755c181942d374705b9afb04eaf 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "memdebug.h"
 
 static CURLcode test_lib3101(char *URL)
index 0252cd9da29b6e24d9c923e15c2fa6eb037de9e3..426c7f4270040cc7615e4e19ff88e41dc6b6031f 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3105(char *URL)
index bc144ae06ab5c2e9bd97f082a7f5430d2547302e..938867eb43e8cd18171818c9a61e81a34f96dd27 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "testutil.h"
 #include "memdebug.h"
 
index 8be16c8080fccb9c70e92d132cc2096a08e61166..c67ab8573aef797dda5709b9467147bd48dad473 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3208(char *URL)
index 108a885f21d3c6e4c0569e2532e6d1a370ad440e..db92531316b03ab21f161fe0730b9a63c93b58d3 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 7c6e06ba0fcde1e852e31245c95fcbb57f672f0b..8f1bc4eaeba5bbe9b733e8a98d398f7ada9ae745 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index cd14a9b019e322b01b1f6777b9c2221a3663914f..c530ee0c0aed1edd515c485975f7fa442e453139 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 58322b435202c724a2c4fe83ef33ce698cb251fa..187106f24b2c2a25aca42de95c39f5555a157f37 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib507(char *URL)
index f31786ce6ca6d8300f597f2239d30eefcce84660..3ff8d5a536586098b36535984f01a0b4096b3af3 100644 (file)
@@ -28,7 +28,6 @@
 #endif
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #ifndef FD_SETSIZE
index a34a197c111cdabedb5f152c59ba1cbc4033bd2e..3a6de9558ae94d7d56dd7921785f8653cf1b8d6e 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib525(char *URL)
index c30070fc846cee9d5ae6883417b60fe3c8022a1b..370e4905e2378e00f870912d4a201648c6df8e45 100644 (file)
@@ -45,7 +45,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib526(char *URL)
index 331edf36401549179cfde7e7001ce1b508225632..db81b6dfb550ddce4fff2a9124644d0dc2d768ec 100644 (file)
@@ -33,7 +33,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t530_Sockets {
index c22dca3c54946a0ef8da8ccc8c72320b889afa6b..05d31ca2b1cff7d5076b28e7eb5a379d02e9607b 100644 (file)
@@ -28,7 +28,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib533(char *URL)
index dd2fa2ac10c80a4634e0d30bc49314816cf3f541..7970a056893fdd96530a079e4afbd5d1cc7d07ed 100644 (file)
@@ -28,7 +28,6 @@
 #endif
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #if !defined(HAVE_POLL) && !defined(USE_WINSOCK) && !defined(FD_SETSIZE)
index 91ff68c1ff2333380e867393e1914aabb3d58b78..3ec58c1cdab3243e5608a75541a9393aaf0d7d19 100644 (file)
@@ -35,7 +35,6 @@
 #include <limits.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define PROXY libtest_arg2
index 3db4e77c95276828526cf1589f6e5e26c6a56d11..8272af854813590ca19daef88d3b06231d641434 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "test.h"
 
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t552_testdata {
index 9ab7cc9d2c84c7e31b4932cd40daf78c94b1077f..16eff34f267546d3f86b8a2e223c751797f39a58 100644 (file)
@@ -31,8 +31,8 @@
  */
 
 #include "test.h"
+
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static const char uploadthis[] = "this is the blurb we want to upload\n";
index 2aacf5575640d73abc1444863759fb96134f6ec1..964a190718bee05cb672512224ee57b3896b274b 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "test.h"
 
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib556(char *URL)
index bc4f53721821238f1e4179ecf68c69388db820e2..2f372f52fe99ab92bf8bad92b39e617c887df130 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 6ff749f44a7ae7963420f14a71e22ad6538ed2ed..7e7739250486830cf0f5a7d1d8226ef6ceb4986e 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib564(char *URL)
index 392bb698888bff7b134d3f2c404301e0cae03c80..fc9d874910dab7baf9bc80779b1069ea12379a5c 100644 (file)
@@ -40,7 +40,6 @@
 #endif
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 #define RTP_PKT_CHANNEL(p)   ((int)((unsigned char)((p)[1])))
index 2e3b40fc0008c637a26cf4919d9257a10c63b17e..19562acb9326694928002ab8405a66df13663987 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testtrace.h"
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 7db472b5fce93702e61853febda56e8dcc95762b..53bd77b9ecfc31f05f29c3958ed32475389c8a83 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /* 3x download!
index 676ad69f4c9278681be5084f123a24c3eb556412..fa8471da076f778a7c04f3b35490083cf6464f98 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t582_Sockets {
index 2bf21ba0b95fcc1aead33aa15799f217f8bb7d33..e8a8034f1e2b49df1770566ba5b633a31d432977 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "memdebug.h"
 
 #define THREADS 2
index 11e82632d3478651d5afab85fa1306932c714528..b28bed638e9f9cb8c8d11a8c1a5543dd2a2b9f4c 100644 (file)
@@ -30,7 +30,6 @@
 #include <fcntl.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib591(char *URL)
index 33e290ca3c1fae1d74ccb6a8912b60e0d2c291ab..e38cd6784f8d2fc58570e17570c1ab1410f68f05 100644 (file)
@@ -26,7 +26,6 @@
 #include <limits.h>
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 001db958882694e8035fd5d4b0629796d8858ed8..5b8662e6e4febfa7addfc94f2e6ef0e7d804770f 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 4b721d8ff4de4e91f70819ae8eca97479fcc5560..57a5ff17f18cacafef6930fce78b98159e02046f 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 5c8d839988f8597986c67818321b623c8ef64fee..de759631340aaa173ddef2673c14d06baa8a60bf 100644 (file)
@@ -22,6 +22,7 @@
  *
  ***************************************************************************/
 #include "test.h"
+
 #include "memdebug.h"
 
 static CURLcode test_lib661(char *URL)
index be737b2ebce37a79feb5247cd4d84998cebb5d2d..521c351bd8dab4d35f27bebe9f2981ab934270dc 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index a2e739f5845af3a6a4a6c1ba9e8af5f492b92635..33e39830ad54481431d16cccbaaf853528fd7e30 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib677(char *URL)
index 98e982f1ef071ccd6b7a0791415e06c4df645aaf..d0c465f9f6985980274d9a49f3f424d041bf6691 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static int loadfile(const char *filename, void **filedata, size_t *filesize)
index ae370721c1c1b385d9774e252e9a81a6ef94506d..c1e36909bba0874d7024b23aa380e8d21f6b2556 100644 (file)
@@ -24,7 +24,6 @@
 #include "test.h"
 
 #include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 /*
index 6f12069f874bc38869105bf94626a5e2337c91fc..9adbe3ef3d63f70292e7925c5311bf1096d4143f 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "testutil.h"
 #include "testtrace.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 struct t753_transfer_status {
index 9728abfadf09e2825108cff9979af0c53a476bcc..7f28facc367b71724d56e314f306af8ac43d9d65 100644 (file)
 #endif
 
 #include <curlx.h> /* from the private lib dir */
-#include "warnless.h" /* for read() */
 
 /* include memdebug.h last */
 #include <memdebug.h>
index 5da43328a8e70cd084bc35965aefb0893a4e79c5..5046305e7aea48ee9d9a218bacd5cbfc6e7354af 100644 (file)
@@ -24,7 +24,6 @@
 #include "curlcheck.h"
 
 #include "splay.h"
-#include "warnless.h"
 
 static void splayprint(struct Curl_tree *t, int d, char output)
 {