s3:smb2_create: #if 0 unused variable
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Aug 2015 12:16:14 +0000 (14:16 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 28 Aug 2015 17:03:14 +0000 (19:03 +0200)
This fixes the build on ubuntu 14.04, which failed like this:

   [2852/3952] Compiling source3/smbd/smb2_create.c
   ../source3/smbd/smb2_create.c: In function ‘smbd_smb2_create_send’:
   ../source3/smbd/smb2_create.c:678:28: error: variable ‘svhdx’ set but not used [-Werror=unused-but-set-variable]
          struct smb2_create_blob *svhdx = NULL;

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_create.c

index 9f14544c62d7d7df2261d3f910c62a3aa838da01..e151e9673fb7ece6ab96b58e52dcf13f80ace65f 100644 (file)
@@ -675,7 +675,9 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                struct smb2_lease lease;
                struct smb2_lease *lease_ptr = NULL;
                ssize_t lease_len = -1;
+#if 0
                struct smb2_create_blob *svhdx = NULL;
+#endif
 
                exta = smb2_create_blob_find(&in_context_blobs,
                                             SMB2_CREATE_TAG_EXTA);
@@ -689,6 +691,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                                             SMB2_CREATE_TAG_TWRP);
                qfid = smb2_create_blob_find(&in_context_blobs,
                                             SMB2_CREATE_TAG_QFID);
+#if 0
                if (smb2req->xconn->protocol >= PROTOCOL_SMB3_02) {
                        /*
                         * This was introduced with SMB3_02
@@ -696,6 +699,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                        svhdx = smb2_create_blob_find(&in_context_blobs,
                                                      SVHDX_OPEN_DEVICE_CONTEXT);
                }
+#endif
 
                fname = talloc_strdup(state, in_name);
                if (tevent_req_nomem(fname, req)) {