summaryrefslogtreecommitdiff
path: root/source4/torture/raw/notify.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-21 13:06:00 -0800
committerJeremy Allison <jra@samba.org>2011-11-21 23:39:08 +0100
commit3e6e1aed949a4483fc38607e443b5c8b715aca3b (patch)
tree631d089cbae788cd8c68442774bdc6720dbc07ab /source4/torture/raw/notify.c
parentaa2e415442fe121a3db5fa79e53ad732d78e9572 (diff)
downloadsamba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.gz
samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.bz2
samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.zip
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/torture/raw/notify.c')
-rw-r--r--source4/torture/raw/notify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c
index 6c4ca82668..402974cb66 100644
--- a/source4/torture/raw/notify.c
+++ b/source4/torture/raw/notify.c
@@ -1482,7 +1482,7 @@ static bool test_notify_tcon(struct smbcli_state *cli, struct torture_context *t
NTSTATUS status;
union smb_notify notify;
union smb_open io;
- int fnum, fnum2;
+ int fnum;
struct smbcli_request *req;
extern int torture_numops;
struct smbcli_tree *tree = NULL;
@@ -1511,7 +1511,6 @@ static bool test_notify_tcon(struct smbcli_state *cli, struct torture_context *t
status = smb_raw_open(cli->tree, torture, &io);
CHECK_STATUS(status, NT_STATUS_OK);
- fnum2 = io.ntcreatex.out.file.fnum;
/* ask for a change notify,
on file or directory name changes */