Bug 577992 warning: unused variable ‘isSentinel’ in imgDiscardTracker::Reset

r=bholley

--HG--
extra : rebase_source : 790bb046a21e45ca79c23cfc522cf89430467f8b
This commit is contained in:
timeless@mozdev.org 2010-07-15 15:55:04 +03:00
Родитель 667b7dd28a
Коммит 429854f1ec
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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)) {