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>
This commit is contained in:
parent
55cc7f3ed2
commit
84972cbb06
7
configure
vendored
7
configure
vendored
@ -2074,7 +2074,7 @@ cat > $TMPC <<EOF
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
int main(void) { preadv; }
|
int main(void) { return preadv == preadv; }
|
||||||
EOF
|
EOF
|
||||||
preadv=no
|
preadv=no
|
||||||
if compile_prog "" "" ; then
|
if compile_prog "" "" ; then
|
||||||
@ -2107,7 +2107,7 @@ if test "$opengl" != "no" ; then
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
int main(void) { GL_VERSION; return 0; }
|
int main(void) { return GL_VERSION != 0; }
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-lGL" ; then
|
if compile_prog "" "-lGL" ; then
|
||||||
opengl=yes
|
opengl=yes
|
||||||
@ -2369,8 +2369,7 @@ int main(void)
|
|||||||
* warning but not an error, and will proceed to fail the
|
* warning but not an error, and will proceed to fail the
|
||||||
* qemu compile where we compile with -Werror.)
|
* qemu compile where we compile with -Werror.)
|
||||||
*/
|
*/
|
||||||
epoll_create1;
|
return epoll_create1 == epoll_create1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "$ARCH_CFLAGS" "" ; then
|
if compile_prog "$ARCH_CFLAGS" "" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user