projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae12ae3
)
Fix build for gcc-4.2 opt/fast
author
Lisa Hsu
<Lisa.Hsu@amd.com>
Thu, 1 Sep 2011 22:25:54 +0000
(15:25 -0700)
committer
Lisa Hsu
<Lisa.Hsu@amd.com>
Thu, 1 Sep 2011 22:25:54 +0000
(15:25 -0700)
Even though the code is safe, compiler flags a warning here, which are treated as errors for fast/opt. I know it's redundant but it has no side effects and fixes the compile.
src/mem/cache/prefetch/base.cc
patch
|
blob
|
history
diff --git
a/src/mem/cache/prefetch/base.cc
b/src/mem/cache/prefetch/base.cc
index 52d1171401824f55d65fbf5bdd11536ffb334b1a..0f92901867e60777b4cf13008da919bcb8349810 100644
(file)
--- a/
src/mem/cache/prefetch/base.cc
+++ b/
src/mem/cache/prefetch/base.cc
@@
-138,7
+138,7
@@
BasePrefetcher::getPacket()
return NULL;
}
- PacketPtr pkt;
+ PacketPtr pkt
= *pf.begin()
;
while (!pf.empty()) {
pkt = *pf.begin();
pf.pop_front();