configure: Fix compiler warnings in config.log (old-style function definition)
authorStefan Weil <sw@weilnetz.de>
Sat, 17 Dec 2011 08:27:30 +0000 (09:27 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 19 Dec 2011 11:03:42 +0000 (11:03 +0000)
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>
configure

index 03b8f35748c10900ca41dbf0bea2b699a6ad04bb..93c6cbec3002b642dedfdb995428eb79ff6da497 100755 (executable)
--- 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