configure: Remove unneeded defines from checks
PATCH 1/1 configure: Remove unneeded defines from checks
_GNU_SOURCE is already defined in QEMU_CFLAGS which is passed to gcc in shell function compile_prog.
Removing the definition from several checks avoids compiler warnings (which are now written to config.log).
--- configure | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
configure +0 -4
@@ -1888,7 +1888,6 @@ fi utimens=no cat > $TMPC << EOF #define _ATFILE_SOURCE -#define _GNU_SOURCE #include <stddef.h> #include <fcntl.h>
@@ -1906,7 +1905,6 @@ fi # check if pipe2 is there pipe2=no cat > $TMPC << EOF -#define _GNU_SOURCE #include <unistd.h> #include <fcntl.h>
@@ -1924,7 +1922,6 @@ fi # check if accept4 is there accept4=no cat > $TMPC << EOF -#define _GNU_SOURCE #include <sys/socket.h> #include <stddef.h>
@@ -1941,7 +1938,6 @@ fi # check if tee/splice is there. vmsplice was added same time. splice=no cat > $TMPC << EOF -#define _GNU_SOURCE #include <unistd.h> #include <fcntl.h> #include <limits.h>
Signature · 1 line
1.7.1
Blue Swirl
AppliedThanks, applied.
Quoted 52 lines · Stefan Weil
_GNU_SOURCEis already defined inQEMU_CFLAGSwhich is passed to gcc in shell functioncompile_prog.Removing the definition from several checks avoids compiler warnings (which are now written to config.log).
Signed-off-by Stefan Weil <[email protected]>---
configure | 4 ----1 files changed, 0 insertions(+), 4 deletions(-)configure +0
-0@@ -1888,7 +1888,6 @@ fiutimens=no
cat > $TMPC << EOF
#define_ATFILE_SOURCE
-#define_GNU_SOURCE
#include <stddef.h>
#include <fcntl.h>configure +0
-0@@ -1906,7 +1905,6 @@ fi # check if pipe2 is therepipe2=no
cat > $TMPC << EOF
-#define_GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>configure +0
-0@@ -1924,7 +1922,6 @@ fi # check if accept4 is thereaccept4=no
cat > $TMPC << EOF
-#define_GNU_SOURCE
#include <sys/socket.h>
#include <stddef.h>configure +0
-0@@ -1941,7 +1938,6 @@ fi # check if tee/splice is there. vmsplice was added same time.splice=no
cat > $TMPC << EOF
-#define_GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
--
1.7.1