mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #3169 from kolyshkin/1.0-fix-cc-warn
[1.0] libct/nsenter: fix unused-result warning
This commit is contained in:
@@ -170,7 +170,10 @@ static void write_log(const char *level, const char *format, ...)
|
||||
goto out;
|
||||
}
|
||||
|
||||
write(logfd, json, ret);
|
||||
/* This logging is on a best-effort basis. In case of a short or failed
|
||||
* write there is nothing we can do, so just ignore write() errors.
|
||||
*/
|
||||
ssize_t __attribute__((unused)) __res = write(logfd, json, ret);
|
||||
|
||||
out:
|
||||
free(message);
|
||||
|
||||
Reference in New Issue
Block a user