build: fix failures with -Wcast-align and -Werror

Closes #457
This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-26 17:24:34 +09:00 committed by Daniel Stenberg
parent 710bb89cf3
commit 119037325d
4 changed files with 12 additions and 10 deletions

View file

@ -538,7 +538,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
/* this "cast increases required alignment of target type" but
we consider it OK anyway */
struct curl_slist* list = array_state?
(struct curl_slist*)array_value:
(struct curl_slist*)(void*)array_value:
va_arg(params, struct curl_slist*);
if(current_form->contentheader)