Anthony Gutierrez has uploaded this change for review. ( https://gem5-review.googlesource.com/8461


Change subject: mem: mark unused var with M5_VAR_USED
......................................................................

mem: mark unused var with M5_VAR_USED

a variable in the page table is only used in an
assert(). this will cause .fast builds to fail.
here we mark the variable as used to fix the
issue.

Change-Id: I37693eb15cc14df2100f438fcc56af6ff3f388d1
---
M src/mem/page_table.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/mem/page_table.cc b/src/mem/page_table.cc
index cd34225..047ea50 100644
--- a/src/mem/page_table.cc
+++ b/src/mem/page_table.cc
@@ -83,7 +83,7 @@
             new_vaddr, size);

     while (size > 0) {
-        auto new_it = pTable.find(new_vaddr);
+        auto new_it M5_VAR_USED = pTable.find(new_vaddr);
         auto old_it = pTable.find(vaddr);
         assert(old_it != pTable.end() && new_it == pTable.end());


--
To view, visit https://gem5-review.googlesource.com/8461
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I37693eb15cc14df2100f438fcc56af6ff3f388d1
Gerrit-Change-Number: 8461
Gerrit-PatchSet: 1
Gerrit-Owner: Anthony Gutierrez <anthony.gutier...@amd.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to