diff options
author | Lisa Hsu <Lisa.Hsu@amd.com> | 2011-09-01 15:25:54 -0700 |
---|---|---|
committer | Lisa Hsu <Lisa.Hsu@amd.com> | 2011-09-01 15:25:54 -0700 |
commit | f6a2ef22ffc70d2467a2b9c0bc1532f73be067b5 (patch) | |
tree | 73e21ed9f3398f6e5a03941a251d6dec620fc184 | |
parent | ae12ae30239a4d62bdb7e88f0d9f7be613fa1005 (diff) | |
download | gem5-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.cc | 2 |
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(); |