summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefan Weil2011-12-17 09:27:38 +0100
committerStefan Hajnoczi2011-12-19 12:03:43 +0100
commit84972cbb06046ad7b60e9c388509b9b96fa0510d (patch)
tree8a6f409c73712e819579857df2b4bd23b22534d8 /configure
parentconfigure: Fix compiler warning in config.log (value was never used) (diff)
downloadqemu-84972cbb06046ad7b60e9c388509b9b96fa0510d.tar.gz
qemu-84972cbb06046ad7b60e9c388509b9b96fa0510d.tar.xz
qemu-84972cbb06046ad7b60e9c388509b9b96fa0510d.zip
configure: Fix compiler warnings in config.log (statement without effect)
Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure b/configure
index bd6f10fa7c..36ee849864 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