From 4ada9ac75e5a8b8e5071bc3f4f1b8d1ab99e781e Mon Sep 17 00:00:00 2001 From: Zhenbo Li Date: Thu, 4 Dec 2014 21:30:22 +0800 Subject: [PATCH] =?UTF-8?q?Bug=201106050=20-=20Fix=20variable=20=E2=80=98f?= =?UTF-8?q?ifoCallbacksRegistered=E2=80=99=20set=20but=20not=20used=20warn?= =?UTF-8?q?ing.=20r=3Dnjn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xpcom/base/nsMemoryInfoDumper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpcom/base/nsMemoryInfoDumper.cpp b/xpcom/base/nsMemoryInfoDumper.cpp index 26cf8796559d..4004351a6af5 100644 --- a/xpcom/base/nsMemoryInfoDumper.cpp +++ b/xpcom/base/nsMemoryInfoDumper.cpp @@ -7,6 +7,7 @@ #include "mozilla/JSONWriter.h" #include "mozilla/UniquePtr.h" #include "mozilla/nsMemoryInfoDumper.h" +#include "mozilla/DebugOnly.h" #include "nsDumpUtils.h" #include "mozilla/unused.h" @@ -221,7 +222,7 @@ doGCCCDump(const nsCString& aInputStr) bool SetupFifo() { - static bool fifoCallbacksRegistered = false; + static DebugOnly fifoCallbacksRegistered = false; if (!FifoWatcher::MaybeCreate()) { return false;