[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/11] configure: Fix compiler warnings in config.lo
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition) |
Date: |
Sat, 17 Dec 2011 09:27:30 +0100 |
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 <address@hidden>
---
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.2.5
[Qemu-devel] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition),
Stefan Weil <=
[Qemu-devel] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 05/11] configure: Fix compiler warning in config.log (unused variable), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 06/11] configure: Fix compiler warning in config.log (macro redefined), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 08/11] configure: Fix compiler warning in config.log (undefined NULL), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 09/11] configure: Fix compiler warning in config.log (value was never used), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 10/11] configure: Fix compiler warnings in config.log (statement without effect), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 07/11] configure: Fix compiler warnings in config.log (uninitialized variable), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 11/11] configure: Improve Xen autodetection for hosts without Xen, Stefan Weil, 2011/12/17
Re: [Qemu-devel] [PATCH 00/11] configure: Fix compiler warnings in config.log, Peter Maydell, 2011/12/17