ERR: Attempt to remove more warnings
This commit is contained in:
parent
b524f7573b
commit
083aba04cf
|
@ -416,5 +416,7 @@ IF(CURL_TESTING)
|
||||||
SUBDIRS(Testing)
|
SUBDIRS(Testing)
|
||||||
ENDIF(CURL_TESTING)
|
ENDIF(CURL_TESTING)
|
||||||
|
|
||||||
|
IF(NOT CMAKE_BUILD_WITH_CURL)
|
||||||
ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
|
ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
|
||||||
TARGET_LINK_LIBRARIES(LIBCURL Curl)
|
TARGET_LINK_LIBRARIES(LIBCURL Curl)
|
||||||
|
ENDIF(NOT CMAKE_BUILD_WITH_CURL)
|
||||||
|
|
|
@ -876,10 +876,15 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
|
||||||
{
|
{
|
||||||
/* this "cast increases required alignment of target type" but
|
/* this "cast increases required alignment of target type" but
|
||||||
we consider it OK anyway */
|
we consider it OK anyway */
|
||||||
struct curl_slist* list = array_state?
|
struct curl_slist* list;
|
||||||
(struct curl_slist*)array_value:
|
if ( array_state )
|
||||||
va_arg(params, struct curl_slist*);
|
{
|
||||||
|
memcpy(list, array_value, sizeof(struct curl_slist*));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
list = va_arg(params, struct curl_slist*);
|
||||||
|
}
|
||||||
if( current_form->contentheader )
|
if( current_form->contentheader )
|
||||||
return_value = CURL_FORMADD_OPTION_TWICE;
|
return_value = CURL_FORMADD_OPTION_TWICE;
|
||||||
else
|
else
|
||||||
|
|
|
@ -1795,7 +1795,7 @@ LookupWord (yylval, buff)
|
||||||
|
|
||||||
/* Make it lowercase. */
|
/* Make it lowercase. */
|
||||||
for (p = buff; *p; p++)
|
for (p = buff; *p; p++)
|
||||||
if (ISUPPER ((unsigned char) *p))
|
if (ISUPPER ((unsigned int)(*p)))
|
||||||
*p = (char)tolower (*p);
|
*p = (char)tolower (*p);
|
||||||
|
|
||||||
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
||||||
|
|
|
@ -174,7 +174,7 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
|
||||||
/* scan through the list and remove the 'curl_handle' */
|
/* scan through the list and remove the 'curl_handle' */
|
||||||
easy = multi->easy.next;
|
easy = multi->easy.next;
|
||||||
while(easy) {
|
while(easy) {
|
||||||
if(easy->easy_handle == curl_handle)
|
if((CURL*)(easy->easy_handle) == curl_handle)
|
||||||
break;
|
break;
|
||||||
easy=easy->next;
|
easy=easy->next;
|
||||||
}
|
}
|
||||||
|
|
|
@ -973,10 +973,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
#else
|
#else
|
||||||
return CURLE_SSL_ENGINE_NOTFOUND;
|
return CURLE_SSL_ENGINE_NOTFOUND;
|
||||||
#endif
|
#endif
|
||||||
break;
|
|
||||||
case CURLOPT_SSLENGINE_DEFAULT:
|
case CURLOPT_SSLENGINE_DEFAULT:
|
||||||
/*
|
/*
|
||||||
* flag to set engine as default.
|
* flag to set engine as default.
|
||||||
|
|
Loading…
Reference in New Issue