summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/smb_server/smb2/smb2_server.h2
-rw-r--r--source4/smb_server/smb_server.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb2/smb2_server.h b/source4/smb_server/smb2/smb2_server.h
index daf7e315c2..57563cf0f5 100644
--- a/source4/smb_server/smb2/smb2_server.h
+++ b/source4/smb_server/smb2/smb2_server.h
@@ -108,7 +108,7 @@ struct smbsrv_request;
smb2srv_send_error(req, NT_STATUS_NO_MEMORY); \
return; \
} \
- talloc_steal(req->tcon->ntvfs, req); \
+ (void)talloc_steal(req->tcon->ntvfs, req); \
req->ntvfs->frontend_data.private_data = req; \
} while (0)
diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h
index f479bc35b4..39f26c3bba 100644
--- a/source4/smb_server/smb_server.h
+++ b/source4/smb_server/smb_server.h
@@ -421,7 +421,7 @@ struct smbsrv_connection {
smbsrv_send_error(req, NT_STATUS_NO_MEMORY); \
return; \
} \
- talloc_steal(req->tcon->ntvfs, req); \
+ (void)talloc_steal(req->tcon->ntvfs, req); \
req->ntvfs->frontend_data.private_data = req; \
} while (0)