aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2011-12-17 09:27:30 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-19 11:03:42 +0000
commit182eacc0fdd860ac60fa6fcf40429caa15e8328a (patch)
tree719fd52a22f541541bc5922f62a4b20fe9f1ae95
parent75cafad74d8df3f8ea188ed355127b91c9903290 (diff)
downloadqemu-182eacc0fdd860ac60fa6fcf40429caa15e8328a.zip
qemu-182eacc0fdd860ac60fa6fcf40429caa15e8328a.tar.gz
qemu-182eacc0fdd860ac60fa6fcf40429caa15e8328a.tar.bz2
configure: Fix compiler warnings in config.log (old-style function definition)
warning: function declaration isn’t a prototype In function ‘foo’: warning: old-style function definition The function name was changed, too, to avoid an additional warning. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 03b8f35..93c6cbe 100755
--- a/configure
+++ b/configure
@@ -1274,11 +1274,11 @@ if test "$nptl" != "no" ; then
cat > $TMPC <<EOF
#include <sched.h>
#include <linux/futex.h>
-void foo()
-{
+int main(void) {
#if !defined(CLONE_SETTLS) || !defined(FUTEX_WAIT)
#error bork
#endif
+ return 0;
}
EOF