diff options
-rw-r--r-- | src/nspawn/nspawn.c | 4 | ||||
-rw-r--r-- | src/shared/barrier.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index e199eb665a..fca3222a87 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -3371,7 +3371,7 @@ int main(int argc, char *argv[]) { /* Tell the parent that we are ready, and that * it can cgroupify us to that we lack access * to certain devices and resources. */ - barrier_place(&barrier); + (void)barrier_place(&barrier); if (chdir(arg_directory) < 0) { log_error("chdir(%s) failed: %m", arg_directory); @@ -3550,7 +3550,7 @@ int main(int argc, char *argv[]) { /* Notify the child that the parent is ready with all * its setup, and that the child can now hand over * control to the code to run inside the container. */ - barrier_place(&barrier); + (void)barrier_place(&barrier); r = sd_event_new(&event); if (r < 0) { diff --git a/src/shared/barrier.h b/src/shared/barrier.h index c55e311344..d4ad2a419b 100644 --- a/src/shared/barrier.h +++ b/src/shared/barrier.h @@ -91,6 +91,6 @@ static inline bool barrier_is_aborted(Barrier *b) { } static inline bool barrier_place_and_sync(Barrier *b) { - barrier_place(b); + (void)barrier_place(b); return barrier_sync(b); } |