summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-11-09 11:34:21 -0700
committerEric Blake <eblake@redhat.com>2011-11-09 11:34:21 -0700
commit7a95153e34b888730afdce3467653f70c4c724e1 (patch)
treef3ca3b3cd796952b6af079a1b75347bf169398a6 /lib
parent91dc8145d6bb46926bcff16983e870554416d232 (diff)
downloadgnulib-7a95153e34b888730afdce3467653f70c4c724e1.tar.gz
raise: fix mingw handling of SIGPIPE
When compiling for mingw, I see: CC sigprocmask.lo sigprocmask.c: In function '_gl_raise_SIGPIPE': sigprocmask.c:349:1: warning: control reaches end of non-void function which means that raise(SIGPIPE) would be using an uninitialized value as its return. * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sigprocmask.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sigprocmask.c b/lib/sigprocmask.c
index e75c7576cd..d696189350 100644
--- a/lib/sigprocmask.c
+++ b/lib/sigprocmask.c
@@ -344,5 +344,6 @@ _gl_raise_SIGPIPE (void)
else if (handler != SIG_IGN)
(*handler) (SIGPIPE);
}
+ return 0;
}
#endif