Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable...
[gd/samba-autobuild/.git] / source4 / torture / raw / lock.c
index 127745e38e8bb77bb4200bf1dd622679bd563c2c..e90b8346aadad4547fdac4d9f04fb4693f804214 100644 (file)
@@ -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.