From f8dc3bbf9f1f5073c9d6a5992371feb60ebfd811 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 20 Jun 2006 09:57:00 +0000 Subject: r16410: remove some warnings of talloc_steal() usage without target I only commit this as this is used in a global macro tridge: we should try to get rid of this warning without using (void)talloc_steal(ctx, ptr); everywhere!!! metze (This used to be commit 3f8ce6d680b0c86abc698b8f9c6d8840da3ffd35) --- source4/smb_server/smb2/smb2_server.h | 2 +- source4/smb_server/smb_server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/smb_server') 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) -- cgit