diff options
author | Jeremy Allison <jra@samba.org> | 2011-11-21 13:06:00 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-11-21 23:39:08 +0100 |
commit | 3e6e1aed949a4483fc38607e443b5c8b715aca3b (patch) | |
tree | 631d089cbae788cd8c68442774bdc6720dbc07ab /source4/torture/raw/lock.c | |
parent | aa2e415442fe121a3db5fa79e53ad732d78e9572 (diff) | |
download | samba-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/lock.c')
-rw-r--r-- | source4/torture/raw/lock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c index 127745e38e..e90b8346aa 100644 --- a/source4/torture/raw/lock.c +++ b/source4/torture/raw/lock.c @@ -2040,7 +2040,6 @@ static bool test_stacking(struct torture_context *tctx, struct smbcli_state *cli int fnum1; const char *fname = BASEDIR "\\stacking.txt"; struct smb_lock_entry lock1; - struct smb_lock_entry lock2; torture_comment(tctx, "Testing stacking:\n"); @@ -2062,9 +2061,6 @@ static bool test_stacking(struct torture_context *tctx, struct smbcli_state *cli lock1.pid = cli->session->pid; lock1.offset = 0; lock1.count = 10; - lock2.pid = cli->session->pid - 1; - lock2.offset = 0; - lock2.count = 10; /** * Try to take a shared lock, then stack an exclusive. |