diff --git a/desmume/src/FIFO.cpp b/desmume/src/FIFO.cpp index 79c62dcb9..4ae6db02b 100644 --- a/desmume/src/FIFO.cpp +++ b/desmume/src/FIFO.cpp @@ -235,8 +235,6 @@ void GFX_FIFOsend(u8 cmd, u32 param) // this function used ONLY in new gxFIFO BOOL GFX_PIPErecv(u8 *cmd, u32 *param) { - u8 tmp_cmd = 0; - u32 tmp_param = 0; u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600); gxstat &= 0xF7FFFFFF; // clear busy flag diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 234416c71..510efbe27 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -1552,8 +1552,10 @@ static INLINE u16 read_timer(int proc, int timerIndex) static INLINE void write_timer(int proc, int timerIndex, u16 val) { +#if 0 int mask = ((val&0x80)>>7) << timerIndex; - //MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask; + MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask; +#endif if(val&0x80) MMU.timer[proc][timerIndex] = MMU.timerReload[proc][timerIndex]; diff --git a/desmume/src/movie.cpp b/desmume/src/movie.cpp index fdfc0adae..c728a04ea 100644 --- a/desmume/src/movie.cpp +++ b/desmume/src/movie.cpp @@ -499,7 +499,6 @@ static bool FCEUSS_SaveSRAM(std::ostream* outstream, std:: string fname) //TODO - support dumping directly without compressing to save a buffer copy memorystream ms; - std::ostream* os = (std::ostream*)&ms; //size it FILE * fp = fopen( fname.c_str(), "r" );