提交 a605dde1 编写于 作者: D Daniel P. Berrangé

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: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 d5d6dbcf
...@@ -50,7 +50,6 @@ getpeername ...@@ -50,7 +50,6 @@ getpeername
getsockname getsockname
gettimeofday gettimeofday
gnumakefile gnumakefile
ignore-value
intprops intprops
ioctl ioctl
isatty isatty
......
...@@ -63,7 +63,13 @@ ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册