From 42287004610f0d3386b1c08a0fff8ed149f76c4e Mon Sep 17 00:00:00 2001 From: Jon Rumsey Date: Mon, 27 Jan 2020 09:23:43 +0100 Subject: urldata: do string enums without #ifdefs for build scripts ... and check for inconsistencies for OS400 at build time with the new chkstrings tool. Closes #4822 --- packages/OS400/ccsidcurl.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'packages/OS400/ccsidcurl.c') diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c index 11e4c777e..64fb7393d 100644 --- a/packages/OS400/ccsidcurl.c +++ b/packages/OS400/ccsidcurl.c @@ -1130,22 +1130,6 @@ curl_easy_setopt_ccsid(CURL *curl, CURLoption tag, ...) char *cp; unsigned int ccsid; curl_off_t pfsize; - static char testwarn = 1; - - /* Warns if this procedure has not been updated when the dupstring enum - changes. - We (try to) do it only once: there is no need to issue several times - the same message; but since threadsafeness is not handled here, - this may occur (and we don't care!). */ - - if(testwarn) { - testwarn = 0; - - if((int) STRING_LASTZEROTERMINATED != (int) STRING_SASL_AUTHZID + 1 || - (int) STRING_LAST != (int) STRING_COPYPOSTFIELDS + 1) - curl_mfprintf(stderr, - "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n"); - } data = (struct Curl_easy *) curl; va_start(arg, tag); -- cgit v1.2.3