From: Gabe Black Date: Sat, 31 Oct 2009 20:20:22 +0000 (-0700) Subject: Syscalls: Fix a warning turned error about an unused variable in m5.fast. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6ff7929b30cde7bce1b3f3be89e1ef6eda82a2d;p=gem5.git Syscalls: Fix a warning turned error about an unused variable in m5.fast. --- diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index d25f7b9fa..fae3586a4 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -52,7 +52,9 @@ using namespace TheISA; void SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc) { +#if TRACING_ON int index = 0; +#endif DPRINTFR(SyscallVerbose, "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n", curTick, tc->getCpuPtr()->name(), name,