changeset 563696c791d2 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=563696c791d2
description:
        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:

 src/sim/syscall_emul.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5e00e947f5d9 -r 563696c791d2 src/sim/syscall_emul.cc
--- a/src/sim/syscall_emul.cc   Fri Jul 18 22:05:51 2014 -0700
+++ b/src/sim/syscall_emul.cc   Sat Jul 19 02:06:22 2014 -0700
@@ -57,7 +57,7 @@
 {
     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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to