diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-07-19 02:06:22 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-07-19 02:06:22 -0700 |
commit | 06bb6a473157a204bb7e77ea28e618aa08d2d811 (patch) | |
tree | b7168d8af8d19febd1bebb884276a5bfa5017153 /src/sim | |
parent | c99b13d90456637e68ef91845a10688900f8bf48 (diff) | |
download | gem5-06bb6a473157a204bb7e77ea28e618aa08d2d811.tar.xz |
syscall emulation: fix fast build issue
Surprisingly gcc will complain about unused variables even
inside an 'if (false)' block.
I thought I had tested this previously, but apparently not.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/syscall_emul.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index ff22aea54..fa18b910f 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -57,7 +57,7 @@ SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc) { if (DTRACE(SyscallVerbose)) { int index = 0; - IntReg arg[4]; + IntReg arg[4] M5_VAR_USED; // we can't just put the calls to getSyscallArg() in the // DPRINTF arg list, because C++ doesn't guarantee their order |