summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc/rpc-transport/socket/src/socket.c2
-rw-r--r--xlators/protocol/server/src/server-handshake.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 06b5af2..46929ce 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -223,7 +223,7 @@ socket_dump_info(struct sockaddr *sa, int is_server, int is_ssl, int sock,
else
peer_type = "client";
- getsockopt(sock, SOL_SOCKET, SO_ERROR, &so_error, &slen);
+ (void)getsockopt(sock, SOL_SOCKET, SO_ERROR, &so_error, &slen);
gf_log(log_domain, GF_LOG_TRACE,
"$$$ %s: %s (af:%d,sock:%d) %s %s (errno:%d:%s)", peer_type,
diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c
index 9ba6f0b..698c3f8 100644
--- a/xlators/protocol/server/src/server-handshake.c
+++ b/xlators/protocol/server/src/server-handshake.c
@@ -916,6 +916,8 @@ fail:
ret = dict_set_str(reply, "ERROR",
"cleanup flag is set for xlator "
"before call first_lookup Try again later");
+ /* quisce coverity about UNUSED_VALUE ret */
+ (void)(ret);
} else {
op_ret = server_first_lookup(this, client, reply);
if (op_ret == -1)