From: Stefan Weil <s...@weilnetz.de> 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 <s...@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com> --- configure | 4 ++-- 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 -- 1.7.7.3