mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
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:
parent
d5d6dbcfb5
commit
a605dde1f5
@ -50,7 +50,6 @@ getpeername
|
|||||||
getsockname
|
getsockname
|
||||||
gettimeofday
|
gettimeofday
|
||||||
gnumakefile
|
gnumakefile
|
||||||
ignore-value
|
|
||||||
intprops
|
intprops
|
||||||
ioctl
|
ioctl
|
||||||
isatty
|
isatty
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user