Message ID | 1466070465-1021-37-git-send-email-hare@suse.de (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
diff --git a/libmultipath/checkers/directio.c b/libmultipath/checkers/directio.c index 46fe6a7..94bf8f7 100644 --- a/libmultipath/checkers/directio.c +++ b/libmultipath/checkers/directio.c @@ -104,9 +104,11 @@ void libcheck_free (struct checker * c) if (ct->reset_flags) { if ((flags = fcntl(c->fd, F_GETFL)) >= 0) { + int ret __attribute__ ((unused)); + flags &= ~O_DIRECT; /* No point in checking for errors */ - fcntl(c->fd, F_SETFL, flags); + ret = fcntl(c->fd, F_SETFL, flags); } }
Mark the return value from fcntl() as unused to avoid compiler warnings. Found by coverity. Signed-off-by: Hannes Reinecke <hare@suse.com> --- libmultipath/checkers/directio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)