mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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.
This commit is contained in:
parent
0119a93b33
commit
09634f46fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user