From c7fbd99660363b74ccb3c75d280c158518bc78b3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 14 Jan 2015 23:16:11 +0100 Subject: [PATCH] sd-bus: tell Coverity that it's OK not to care for return values in some cases --- src/libsystemd/sd-bus/bus-dump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libsystemd/sd-bus/bus-dump.c b/src/libsystemd/sd-bus/bus-dump.c index 33d0ed2df61..afdf52fed41 100644 --- a/src/libsystemd/sd-bus/bus-dump.c +++ b/src/libsystemd/sd-bus/bus-dump.c @@ -419,16 +419,16 @@ int bus_creds_dump(sd_bus_creds *c, FILE *f, bool terse) { if (c->mask & SD_BUS_CREDS_CGROUP) fprintf(f, "%sCGroup=%s%s%s", prefix, color, c->cgroup, suffix); - sd_bus_creds_get_unit(c, &u); + (void) sd_bus_creds_get_unit(c, &u); if (u) fprintf(f, "%sUnit=%s%s%s", prefix, color, u, suffix); - sd_bus_creds_get_user_unit(c, &uu); + (void) sd_bus_creds_get_user_unit(c, &uu); if (uu) fprintf(f, "%sUserUnit=%s%s%s", prefix, color, uu, suffix); - sd_bus_creds_get_slice(c, &sl); + (void) sd_bus_creds_get_slice(c, &sl); if (sl) fprintf(f, "%sSlice=%s%s%s", prefix, color, sl, suffix); - sd_bus_creds_get_session(c, &s); + (void) sd_bus_creds_get_session(c, &s); if (s) fprintf(f, "%sSession=%s%s%s", prefix, color, s, suffix);