/home/rusty/devel/cvs/ccan/ccan/err/test/run.c:124:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(pfd);
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
base = argv[0];
/* Test err() in child */
- pipe(pfd);
+ if (pipe(pfd))
+ abort();
fflush(stdout);
if (fork()) {
char buffer[BUFFER_MAX+1];
}
/* Test errx() in child */
- pipe(pfd);
+ if (pipe(pfd))
+ abort();
fflush(stdout);
if (fork()) {
char buffer[BUFFER_MAX+1];
/* Test warn() in child */
- pipe(pfd);
+ if (pipe(pfd))
+ abort();
fflush(stdout);
if (fork()) {
char buffer[BUFFER_MAX+1];
}
/* Test warnx() in child */
- pipe(pfd);
+ if (pipe(pfd))
+ abort();
fflush(stdout);
if (fork()) {
char buffer[BUFFER_MAX+1];