]> Savannah Git Hosting - gnulib.git/commitdiff
raise: fix mingw handling of SIGPIPE
authorEric Blake <eblake@redhat.com>
Wed, 9 Nov 2011 18:34:21 +0000 (11:34 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 9 Nov 2011 18:34:21 +0000 (11:34 -0700)
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>
ChangeLog
lib/sigprocmask.c

index 2e1f6bef5d51dff91f73a83741692c71d5cc7f28..8b5a1ad9482f64e9e5890a2d7c6b58f928d19255 100644 (file)
--- 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.
index e75c7576cdf6dc849e2ecf223edb71062fcaee4e..d69618935041f2b7530f55c74f4b3f2193cf45e2 100644 (file)
@@ -344,5 +344,6 @@ _gl_raise_SIGPIPE (void)
       else if (handler != SIG_IGN)
         (*handler) (SIGPIPE);
     }
+  return 0;
 }
 #endif