changeset 16064:7dd7edd3fc9a

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>
author Eric Blake <eblake@redhat.com>
date Wed, 09 Nov 2011 11:34:21 -0700
parents c3b6b5b6bc32
children 7ecf82aec60c
files ChangeLog lib/sigprocmask.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-09  Eric Blake  <eblake@redhat.com>
+
+	raise: fix mingw handling of SIGPIPE
+	* lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
+
 2011-11-08  Bruno Haible  <bruno@clisp.org>
 
 	More conditional dependencies.
--- a/lib/sigprocmask.c
+++ b/lib/sigprocmask.c
@@ -344,5 +344,6 @@
       else if (handler != SIG_IGN)
         (*handler) (SIGPIPE);
     }
+  return 0;
 }
 #endif