* modules/sigprocmask-tests (Depends-on): Add ignore-value.
* tests/test-sigprocmask.c (main): Use it to silence warning.
Reported by Jim Meyering.
Signed-off-by: Eric Blake <eblake@redhat.com>
2011-07-08 Eric Blake <eblake@redhat.com>
+ test-sigprocmask: avoid compiler warning
+ * modules/sigprocmask-tests (Depends-on): Add ignore-value.
+ * tests/test-sigprocmask.c (main): Use it to silence warning.
+ Reported by Jim Meyering.
+
test-snprintf: avoid compiler warning
* tests/test-snprintf.c (main): Avoid shadowed declaration.
* tests/test-vsnprintf.c (main): Likewise.
tests/macros.h
Depends-on:
+ignore-value
sleep
configure.ac:
#include <stdlib.h>
#include <unistd.h>
+#include "ignore-value.h"
#include "macros.h"
#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
/* Request a SIGINT signal from outside. */
sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
- system (command);
+ ignore_value (system (command));
/* Wait. */
sleep (2);