Bug 703178 - Fixing Wunused-but-set-variable warning in security/manager/ssl/src. r=kaie
authorAtul Aggarwal <atulagrwl@gmail.com>
Tue, 21 Feb 2012 23:09:58 +0530
changeset 20361 c195f596cc5e58cb018bfc7c838e697d927ae81b
parent 20360 2b9f1defff15b905fc230019bd8bda15c4cd98eb
child 20362 b528cff04cc71ca911eb328fa8d32814d9cf842b
child 20371 902e8b16d30627a5bcd48f2172f3376f48c4a773
push id1209
push usermbanner@mozilla.com
push dateTue, 02 Sep 2014 16:59:36 +0000
treeherdercomm-beta@842e0fd167ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaie
bugs703178
Bug 703178 - Fixing Wunused-but-set-variable warning in security/manager/ssl/src. r=kaie
mailnews/mime/src/nsCMSSecureMessage.cpp
--- a/mailnews/mime/src/nsCMSSecureMessage.cpp
+++ b/mailnews/mime/src/nsCMSSecureMessage.cpp
@@ -168,17 +168,16 @@ SendMessage(const char *msg, const char 
   nsresult rv = NS_OK;
   CERTCertificate *cert = 0;
   NSSCMSMessage *cmsMsg = 0;
   unsigned char *certDER = 0;
   PRInt32 derLen;
   NSSCMSEnvelopedData *env;
   NSSCMSContentInfo *cinfo;
   NSSCMSRecipientInfo *rcpt;
-  SECItem item;
   SECItem output;
   PLArenaPool *arena = PORT_NewArena(1024);
   SECStatus s;
   nsCOMPtr<nsIInterfaceRequestor> ctx = new PipUIContext();
 
   /* Step 0. Create a CMS Message */
   cmsMsg = NSS_CMSMessage_Create(NULL);
   if (!cmsMsg) {
@@ -213,18 +212,16 @@ SendMessage(const char *msg, const char 
   env = NSS_CMSEnvelopedData_Create(cmsMsg, SEC_OID_DES_EDE3_CBC, 0);
   if (!env) {
     PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("nsCMSSecureMessage::SendMessage - can't create envelope data\n"));
     rv = NS_ERROR_FAILURE;
     goto done;
   }
 
   cinfo = NSS_CMSEnvelopedData_GetContentInfo(env);
-  item.data = (unsigned char *)msg;
-  item.len = strlen(msg);  /* XPCOM equiv?? */
   s = NSS_CMSContentInfo_SetContent_Data(cmsMsg, cinfo, 0, false);
   if (s != SECSuccess) {
     PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("nsCMSSecureMessage::SendMessage - can't set content data\n"));
     rv = NS_ERROR_FAILURE;
     goto done;
   }
 
   rcpt = NSS_CMSRecipientInfo_Create(cmsMsg, cert);