[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 10/11] configure: Fix compiler warnings in config.
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH 10/11] configure: Fix compiler warnings in config.log (statement without effect) |
Date: |
Sat, 17 Dec 2011 09:27:38 +0100 |
Signed-off-by: Stefan Weil <address@hidden>
---
configure | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 0c791b5..1ae380f 100755
--- a/configure
+++ b/configure
@@ -2074,7 +2074,7 @@ cat > $TMPC <<EOF
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
-int main(void) { preadv; }
+int main(void) { return preadv == preadv; }
EOF
preadv=no
if compile_prog "" "" ; then
@@ -2107,7 +2107,7 @@ if test "$opengl" != "no" ; then
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
-int main(void) { GL_VERSION; return 0; }
+int main(void) { return GL_VERSION != 0; }
EOF
if compile_prog "" "-lGL" ; then
opengl=yes
@@ -2369,8 +2369,7 @@ int main(void)
* warning but not an error, and will proceed to fail the
* qemu compile where we compile with -Werror.)
*/
- epoll_create1;
- return 0;
+ return epoll_create1 == epoll_create1;
}
EOF
if compile_prog "$ARCH_CFLAGS" "" ; then
--
1.7.2.5
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 03/11] configure: Fix compiler warning in config.log (integer from pointer), (continued)
[Qemu-trivial] [PATCH v2 03/11] configure: Fix compiler warning in config.log (integer from pointer), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 05/11] configure: Fix compiler warning in config.log (unused variable), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 09/11] configure: Fix compiler warning in config.log (value was never used), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 08/11] configure: Fix compiler warning in config.log (undefined NULL), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 11/11] configure: Improve Xen autodetection for hosts without Xen, Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 10/11] configure: Fix compiler warnings in config.log (statement without effect),
Stefan Weil <=
[Qemu-trivial] [PATCH 07/11] configure: Fix compiler warnings in config.log (uninitialized variable), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 06/11] configure: Fix compiler warning in config.log (macro redefined), Stefan Weil, 2011/12/17
Re: [Qemu-trivial] [Qemu-devel] [PATCH 00/11] configure: Fix compiler warnings in config.log, Peter Maydell, 2011/12/17