From 119037325de02579f5c58256ca2ed2a0aa592c86 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 26 Sep 2015 17:24:34 +0900 Subject: build: fix failures with -Wcast-align and -Werror Closes #457 --- lib/formdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/formdata.c') diff --git a/lib/formdata.c b/lib/formdata.c index 9e8ce4ea0..66449b982 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -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) -- cgit v1.2.3