Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/nsenter: fix unused-result warning
Commit 2bab4a5 resulted in a warning from gcc: nsexec.c: In function ‘write_log’: nsexec.c:171:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 171 | write(logfd, json, ret); | ^~~~~~~~~~~~~~~~~~~~~~~ As there's nothing we can or want to do in case write fails, let's just tell the compiler we're not going to use it. Fixes: 2bab4a5 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information