diff options
author | Daniel Mack <zonque@gmail.com> | 2014-02-21 12:05:38 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-02-21 12:05:38 +0100 |
commit | 9e82ffa040448a8f800411c2230ad98ef0e57d9c (patch) | |
tree | 9b830a0356d9e1679c54ac4cd708f4f86d1ae44b /rules | |
parent | 9bd9f43fceff79796f6d2a3fb19f7a711a3f3ec5 (diff) |
systemctl: fix compiler warning in list_timers()
get_next_elapse() will always fill 'next' with values when it
returns >= 0. Hence, the compiler is wrong about this warning.
Initialize 'next' nevertheless.
src/systemctl/systemctl.c: In function ‘list_timers’:
src/systemctl/systemctl.c:953:43: warning: ‘next.monotonic’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
converted = nw.realtime - (nw.monotonic - next.monotonic);
^
In file included from ./src/shared/log.h:30:0,
from src/systemctl/systemctl.c:46:
./src/shared/macro.h:137:38: warning: ‘next.realtime’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
_a < _b ? _a : _b; \
^
src/systemctl/systemctl.c:933:32: note: ‘next.realtime’ was declared here
dual_timestamp next;
^
Diffstat (limited to 'rules')
0 files changed, 0 insertions, 0 deletions