EXI_DeviceEthernet: Fix warning: operation on ‘current_rwp’ may be undefined [-Wsequence-point]
This commit is contained in:
parent
1465620721
commit
9c52c600c4
|
@ -578,7 +578,7 @@ bool CEXIETHERNET::RecvHandlePacket()
|
||||||
off = 0;
|
off = 0;
|
||||||
// avoid increasing the BBA register while copying
|
// avoid increasing the BBA register while copying
|
||||||
// sometime the OS can try to process when it's not completed
|
// sometime the OS can try to process when it's not completed
|
||||||
current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : ++current_rwp;
|
current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : current_rwp + 1;
|
||||||
|
|
||||||
write_ptr = &mBbaMem[current_rwp << 8];
|
write_ptr = &mBbaMem[current_rwp << 8];
|
||||||
|
|
||||||
|
@ -604,7 +604,7 @@ bool CEXIETHERNET::RecvHandlePacket()
|
||||||
|
|
||||||
// Align up to next page
|
// Align up to next page
|
||||||
if ((mRecvBufferLength + 4) % 256)
|
if ((mRecvBufferLength + 4) % 256)
|
||||||
current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : ++current_rwp;
|
current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : current_rwp + 1;
|
||||||
|
|
||||||
#ifdef BBA_TRACK_PAGE_PTRS
|
#ifdef BBA_TRACK_PAGE_PTRS
|
||||||
INFO_LOG_FMT(SP1, "{:x} {:x} {:x} {:x}", page_ptr(BBA_BP), page_ptr(BBA_RRP), page_ptr(BBA_RWP),
|
INFO_LOG_FMT(SP1, "{:x} {:x} {:x} {:x}", page_ptr(BBA_BP), page_ptr(BBA_RRP), page_ptr(BBA_RWP),
|
||||||
|
|
Loading…
Reference in New Issue