From bcf02be749954e73fda43b3bd3ec49fdbe0e406d Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 14 Aug 2008 20:50:14 +0000 Subject: [PATCH] Avoid compile warning if logging is off. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@206 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/Debugger/Debugger_BreakPoints.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/Debugger/Debugger_BreakPoints.cpp b/Source/Core/Core/Src/Debugger/Debugger_BreakPoints.cpp index e333d3f03c..b40b1a77df 100644 --- a/Source/Core/Core/Src/Debugger/Debugger_BreakPoints.cpp +++ b/Source/Core/Core/Src/Debugger/Debugger_BreakPoints.cpp @@ -49,8 +49,9 @@ void TMemCheck::Action(u32 iValue, u32 addr, bool write, int size, u32 pc) { if (Log) { - const char *copy = Debugger::GetDescription(addr); - LOG(MEMMAP,"CHK %08x %s%i at %08x (%s)", iValue, write ? "Write" : "Read", size*8, addr, copy); + LOG(MEMMAP,"CHK %08x %s%i at %08x (%s)", + iValue, write ? "Write" : "Read", size*8, addr, + Debugger::GetDescription(addr)); } if (Break) CCPU::Break();