From 171c54d7461be651eb8ef88b2b6fe75bd9dca28a Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 7 Aug 2012 15:45:06 -0700 Subject: [PATCH] vlog: Ignore return value of some write() calls. A couple of calls to write() would generate warnings when the "-Wunused-result" compiler option is enabled. This change ignores the return value, since we can't do anything about it in logging code. Signed-off-by: Justin Pettit --- lib/vlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vlog.c b/lib/vlog.c index 683cdfcf..0bd9bd13 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -892,7 +892,7 @@ vlog_write_file(struct ds *s) vlog_async_write_request_cb, NULL, NULL); vlog_async_inited = true; } else { - write(log_fd, s->string, s->length); + ignore(write(log_fd, s->string, s->length)); } } @@ -918,6 +918,6 @@ vlog_async_write_request_cb(struct ofpbuf *request, } if (request->size > 0) { - write(log_fd, request->data, request->size); + ignore(write(log_fd, request->data, request->size)); } } -- 2.30.2