From 429854f1ecce798165b6b4f12371d99943155174 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Thu, 15 Jul 2010 15:55:04 +0300 Subject: [PATCH] =?UTF-8?q?Bug=20577992=20warning:=20unused=20variable=20?= =?UTF-8?q?=E2=80=98isSentinel=E2=80=99=20in=20imgDiscardTracker::Reset=20?= =?UTF-8?q?r=3Dbholley?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- extra : rebase_source : 790bb046a21e45ca79c23cfc522cf89430467f8b --- modules/libpr0n/src/imgDiscardTracker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/libpr0n/src/imgDiscardTracker.cpp b/modules/libpr0n/src/imgDiscardTracker.cpp index 7fbd78c4eb4f..1c37b9c03e91 100644 --- a/modules/libpr0n/src/imgDiscardTracker.cpp +++ b/modules/libpr0n/src/imgDiscardTracker.cpp @@ -58,6 +58,7 @@ nsresult imgDiscardTracker::Reset(imgDiscardTrackerNode *node) { nsresult rv; +#ifdef DEBUG PRBool isSentinel = (node == &sSentinel); // Sanity check the node. @@ -70,7 +71,7 @@ imgDiscardTracker::Reset(imgDiscardTrackerNode *node) // As soon as an image becomes animated it is set non-discardable NS_ABORT_IF_FALSE(isSentinel || !node->curr->mAnim, "Trying to reset discarding on animated image!"); - +#endif // Initialize the first time through if (NS_UNLIKELY(!sInitialized)) {