summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Hsu <Lisa.Hsu@amd.com>2011-09-01 15:25:54 -0700
committerLisa Hsu <Lisa.Hsu@amd.com>2011-09-01 15:25:54 -0700
commitf6a2ef22ffc70d2467a2b9c0bc1532f73be067b5 (patch)
tree73e21ed9f3398f6e5a03941a251d6dec620fc184
parentae12ae30239a4d62bdb7e88f0d9f7be613fa1005 (diff)
downloadgem5-f6a2ef22ffc70d2467a2b9c0bc1532f73be067b5.tar.xz
Fix build for gcc-4.2 opt/fast
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.
-rw-r--r--src/mem/cache/prefetch/base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc
index 52d117140..0f9290186 100644
--- 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();