Followup to Bug 577916 - mark DEBUG only variables as ifdef DEBUG in plugins. r=joshmoz, a=approval2.0 DONTBUILD
authorDave Townsend <dtownsend@mozilla.com>
Sat, 05 Feb 2011 21:27:31 -0800
changeset 61997 eb35c4e6d50e1fb397d950072873e02c206adf60
parent 61996 f40e9a9977e2de293486ff515efbae4bc5698573
child 61998 1e03f7e81637fa6c66ce0dabc5f6d9703d550300
push idunknown
push userunknown
push dateunknown
reviewersjoshmoz, approval2.0
bugs577916
milestone2.0b12pre
Followup to Bug 577916 - mark DEBUG only variables as ifdef DEBUG in plugins. r=joshmoz, a=approval2.0 DONTBUILD
modules/plugin/base/src/nsNPAPIPlugin.cpp
--- a/modules/plugin/base/src/nsNPAPIPlugin.cpp
+++ b/modules/plugin/base/src/nsNPAPIPlugin.cpp
@@ -1512,17 +1512,17 @@ NPObject* NP_CALLBACK
 
 NPObject* NP_CALLBACK
 _retainobject(NPObject* npobj)
 {
   if (!NS_IsMainThread()) {
     NPN_PLUGIN_LOG(PLUGIN_LOG_ALWAYS,("NPN_retainobject called from the wrong thread\n"));
   }
   if (npobj) {
-#ifdef DEBUG
+#ifdef NS_BUILD_REFCNT_LOGGING
     int32_t refCnt =
 #endif
       PR_AtomicIncrement((PRInt32*)&npobj->referenceCount);
     NS_LOG_ADDREF(npobj, refCnt, "BrowserNPObject", sizeof(NPObject));
   }
 
   return npobj;
 }