From 7a95153e34b888730afdce3467653f70c4c724e1 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 9 Nov 2011 11:34:21 -0700 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ lib/sigprocmask.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2e1f6bef5d..8b5a1ad948 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-09 Eric Blake + + raise: fix mingw handling of SIGPIPE + * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value. + 2011-11-08 Bruno Haible More conditional dependencies. 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 -- 2.39.5