projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0119a93
)
configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 7 Sep 2013 09:12:36 +0000
(11:12 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 7 Sep 2013 09:15:18 +0000
(11:15 +0200)
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.
m4/curl-compilers.m4
patch
|
blob
|
history
diff --git
a/m4/curl-compilers.m4
b/m4/curl-compilers.m4
index
2467128
..
59135ef
100644
(file)
--- 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;