public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Avoid spurious warning
@ 2021-08-03 17:38 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-08-03 17:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=df183287ff7ded9471205abfa59df27e5e5401da

commit df183287ff7ded9471205abfa59df27e5e5401da
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Aug 3 19:37:43 2021 +0200

    hurd: Avoid spurious warning
    
    Compilers missing some flow analysis may think ss may be used
    uninitialized.

Diff:
---
 hurd/hurdselect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
index 9790d54864..cab23fdd82 100644
--- a/hurd/hurdselect.c
+++ b/hurd/hurdselect.c
@@ -67,7 +67,7 @@ _hurd_select (int nfds,
       int error;
     } d[nfds];
   sigset_t oset;
-  struct hurd_sigstate *ss;
+  struct hurd_sigstate *ss = NULL;
 
   union typeword		/* Use this to avoid unkosher casts.  */
     {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-03 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 17:38 [glibc] hurd: Avoid spurious warning Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).