mirror of
https://github.com/openvswitch/ovs
synced 2025-10-15 14:17:18 +00:00
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 <jpettit@nicira.com>
This commit is contained in:
@@ -892,7 +892,7 @@ vlog_write_file(struct ds *s)
|
|||||||
vlog_async_write_request_cb, NULL, NULL);
|
vlog_async_write_request_cb, NULL, NULL);
|
||||||
vlog_async_inited = true;
|
vlog_async_inited = true;
|
||||||
} else {
|
} 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) {
|
if (request->size > 0) {
|
||||||
write(log_fd, request->data, request->size);
|
ignore(write(log_fd, request->data, request->size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user