chiark / gitweb /
shutdownd: shut up bogus gcc warning
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Mar 2013 23:20:41 +0000 (19:20 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Mar 2013 02:39:23 +0000 (22:39 -0400)
commit7a4b2eab6d1d0e4b67cbcb87b84588edd34aabb5
tree480b03b0b6a5cfdc37048bee2cde60d12c6ecf42
parent40c2cce772ed74e7c6d302a6143ad818e9a2720d
shutdownd: shut up bogus gcc warning

This one is fake. But let's kill it, avoiding two condition checks
in the process.

src/shutdownd/shutdownd.c: In function 'when_wall':
src/shutdownd/shutdownd.c:182:44: warning: 'sub' may be used uninitialized in this function [-Wmaybe-uninitialized]
         return elapse > sub ? elapse - sub : 1;
                                            ^
src/shutdownd/shutdownd.c