зеркало из https://github.com/mozilla/gecko-dev.git
Bug 577992 warning: unused variable ‘isSentinel’ in imgDiscardTracker::Reset
r=bholley --HG-- extra : rebase_source : 790bb046a21e45ca79c23cfc522cf89430467f8b
This commit is contained in:
Родитель
667b7dd28a
Коммит
429854f1ec
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче