Bug 577918 - mark DEBUG only variables as ifdef DEBUG in parser r=mrbkap a=jst
authortimeless@mozdev.org
Sun, 11 Jul 2010 15:55:52 +0300
changeset 61931 04ec9b6ace68c38ffa98e2b55402692c71edb62e
parent 61930 744e274074da6b74ca6935c81411b3df8a556c07
child 61932 51f36c6a7d38cf27d2a64078832bef4b7b507fcb
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersmrbkap, jst
bugs577918
milestone2.0b12pre
Bug 577918 - mark DEBUG only variables as ifdef DEBUG in parser r=mrbkap a=jst
parser/htmlparser/tests/outsinks/Convert.cpp
--- a/parser/htmlparser/tests/outsinks/Convert.cpp
+++ b/parser/htmlparser/tests/outsinks/Convert.cpp
@@ -313,12 +313,16 @@ Usage: %s [-i intype] [-o outtype] [-f f
       inString.Append(PRUnichar(c));
 
     if (file != stdin)
       fclose(file);
 
     ret = HTML2text(inString, inType, outType, flags, wrapCol, compareAgainst);
   } // this scopes the nsCOMPtrs
   // no nsCOMPtrs are allowed to be alive when you call NS_ShutdownXPCOM
-  nsresult rv = NS_ShutdownXPCOM( NULL );
+
+#ifdef DEBUG
+  nsresult rv =
+#endif
+    NS_ShutdownXPCOM( NULL );
   NS_ASSERTION(NS_SUCCEEDED(rv), "NS_ShutdownXPCOM failed");
   return ret;
 }