bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

timeout.c warning about returning undefined value


From: Jim Meyering
Subject: timeout.c warning about returning undefined value
Date: Mon, 31 Aug 2009 17:38:41 +0200

Hi Pádraig,

clang reports this:

  timeout.c:330:9: warning: Uninitialized or undefined value returned to caller.
          return status;
          ^

Even if it really can't happen (which the comment suggests), please
initialize "status" or ensure that we get a diagnostic and exit nonzero
if/when wait ever fails.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]