summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-20 09:57:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:13 -0500
commitf8dc3bbf9f1f5073c9d6a5992371feb60ebfd811 (patch)
tree95c5640b082599970d9f8f84faced1825fb850c8 /source4
parent1fd1e2ba581c8ac67ba63fbb889fbedcc65bfbb9 (diff)
downloadsamba-f8dc3bbf9f1f5073c9d6a5992371feb60ebfd811.tar.gz
samba-f8dc3bbf9f1f5073c9d6a5992371feb60ebfd811.tar.bz2
samba-f8dc3bbf9f1f5073c9d6a5992371feb60ebfd811.zip
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)
Diffstat (limited to 'source4')
-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)