diff --git a/src/GLideNHQ/TxUtil.cpp b/src/GLideNHQ/TxUtil.cpp index 0f7c3a5c..2ce1820a 100644 --- a/src/GLideNHQ/TxUtil.cpp +++ b/src/GLideNHQ/TxUtil.cpp @@ -226,14 +226,11 @@ loop1: static uint8 CalculateMaxCI8b(const uint8* src, uint32 width, uint32 height, uint32 rowStride) { - uint32_t depth = rowStride / width; uint8 max = 0; for (uint32 y = 0; y < height; ++y) { const uint8 * buf = src + rowStride * y; for (uint32 x = 0; x < width; ++x) { - uint8 val = buf[x]; - if (buf[x] > max) max = buf[x]; if (max == 0xFF) diff --git a/src/RSP.cpp b/src/RSP.cpp index 980b0e18..c1f2bf34 100644 --- a/src/RSP.cpp +++ b/src/RSP.cpp @@ -54,7 +54,7 @@ void _ProcessDList() #else RSP.words = *(Gwords*)&RDRAM[RSP.PC[RSP.PCi]]; RSP.cmd = _SHIFTR(RSP.words.w0, 24, 8); -#endif +#endif #ifdef DEBUG_DUMP DebugMsg(DEBUG_LOW, "0x%08lX: CMD=0x%02lX W0=0x%08lX W1=0x%08lX\n", RSP.PC[RSP.PCi], _SHIFTR(RSP.words.w0, 24, 8), RSP.words.w0, RSP.words.w1);