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.
This commit is contained in:
Lisa Hsu 2011-09-01 15:25:54 -07:00
parent ae12ae3023
commit f6a2ef22ff

View file

@ -138,7 +138,7 @@ BasePrefetcher::getPacket()
return NULL;
}
PacketPtr pkt;
PacketPtr pkt = *pf.begin();
while (!pf.empty()) {
pkt = *pf.begin();
pf.pop_front();