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:
parent
ae12ae3023
commit
f6a2ef22ff
2
src/mem/cache/prefetch/base.cc
vendored
2
src/mem/cache/prefetch/base.cc
vendored
|
@ -138,7 +138,7 @@ BasePrefetcher::getPacket()
|
|||
return NULL;
|
||||
}
|
||||
|
||||
PacketPtr pkt;
|
||||
PacketPtr pkt = *pf.begin();
|
||||
while (!pf.empty()) {
|
||||
pkt = *pf.begin();
|
||||
pf.pop_front();
|
||||
|
|
Loading…
Reference in a new issue