build: drop the ignore-value gnulib module

We don't need to care about very old GCC versions, so implementing the
ignore_value macro directly is not a significant burden.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2019-10-03 16:25:45 +01:00
parent d5d6dbcfb5
commit a605dde1f5
2 changed files with 7 additions and 2 deletions

View File

@ -50,7 +50,6 @@ getpeername
getsockname getsockname
gettimeofday gettimeofday
gnumakefile gnumakefile
ignore-value
intprops intprops
ioctl ioctl
isatty isatty

View File

@ -63,7 +63,13 @@
#include "libvirt/virterror.h" #include "libvirt/virterror.h"
#include "c-strcase.h" #include "c-strcase.h"
#include "ignore-value.h"
/* Merely casting to (void) is not sufficient since the
* introduction of the "warn_unused_result" attribute
*/
#define ignore_value(x) \
(__extension__ ({ __typeof__ (x) __x = (x); (void) __x; }))
/* String equality tests, suggested by Jim Meyering. */ /* String equality tests, suggested by Jim Meyering. */
#define STREQ(a, b) (strcmp(a, b) == 0) #define STREQ(a, b) (strcmp(a, b) == 0)