From: Daniel Stenberg Date: Sat, 7 Sep 2013 09:12:36 +0000 (+0200) Subject: configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH X-Git-Tag: curl-7_33_0~152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09634f46fb98f02890e4f1bffb99bf4d76d6cf85;p=thirdparty%2Fcurl.git configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH The compiler test used a variable before it was assigned when it tried to see how it acts on a mismatching prototype, which could cause a false positive. --- diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 2467128eb5..59135ef3dc 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -1479,7 +1479,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH], [ return n; } ]],[[ - int i[2]; + int i[2]={0,0}; int j = rand(i[0]); if(j) return j;