From f6a2ef22ffc70d2467a2b9c0bc1532f73be067b5 Mon Sep 17 00:00:00 2001 From: Lisa Hsu Date: Thu, 1 Sep 2011 15:25:54 -0700 Subject: 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. --- src/mem/cache/prefetch/base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/cache/prefetch') 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(); -- cgit v1.2.3