summaryrefslogtreecommitdiff
path: root/src/core/unit-printf.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-12 12:56:40 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-12 12:56:40 -0500
commit4440b27d41faa504a4e48203284233625aaac9c5 (patch)
tree6a46b5f13c0b0cbe9f9d183d17dc635a8a147c0b /src/core/unit-printf.c
parent7a6a095a9ef6ec014a23a231e5d11e8a2ef0fe17 (diff)
core/manager: silence gcc warning about unitialized variable
At -O3, this was printed a hundred times for various callers of manager_add_job_by_name(). AFAICT, there is no error and `unit` is always intialized. Nevertheless, add explicit initialization to silence the noise. src/core/manager.c: In function 'manager_start_target': src/core/manager.c:1413:16: warning: 'unit' may be used uninitialized in this function [-Wmaybe-uninitialized] return manager_add_job(m, type, unit, mode, e, ret); ^ src/core/manager.c:1401:15: note: 'unit' was declared here Unit *unit; ^
Diffstat (limited to 'src/core/unit-printf.c')
0 files changed, 0 insertions, 0 deletions