mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-24 18:21:50 +01:00
silence a few warnings
This commit is contained in:
parent
f875dfe346
commit
d6eeb5c77d
@ -3135,8 +3135,13 @@ static void ScreenPositionWindowUpdate(void * ptr, int x, int y)
|
||||
GCSettings.xshift += x;
|
||||
GCSettings.yshift += y;
|
||||
|
||||
if(!(GCSettings.xshift > -50 && GCSettings.xshift < 50))
|
||||
GCSettings.xshift = 0;
|
||||
if(!(GCSettings.yshift > -50 && GCSettings.yshift < 50))
|
||||
GCSettings.yshift = 0;
|
||||
|
||||
char shift[10];
|
||||
sprintf(shift, "%i, %i", GCSettings.xshift, GCSettings.yshift);
|
||||
sprintf(shift, "%hd, %hd", GCSettings.xshift, GCSettings.yshift);
|
||||
settingText->SetText(shift);
|
||||
b->ResetState();
|
||||
}
|
||||
|
@ -866,8 +866,6 @@ void SPC_DSP::init( void* ram_64k )
|
||||
int i;
|
||||
i = +0x8000; CLAMP16( i ); assert( i == +0x7FFF );
|
||||
i = -0x8001; CLAMP16( i ); assert( i == -0x8000 );
|
||||
|
||||
blargg_verify_byte_order();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -52,17 +52,6 @@
|
||||
#undef BLARGG_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
inline void blargg_verify_byte_order()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#if BLARGG_BIG_ENDIAN
|
||||
volatile int i = 1;
|
||||
#elif BLARGG_LITTLE_ENDIAN
|
||||
volatile int i = 1;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
inline unsigned get_le16( void const* p )
|
||||
{
|
||||
return (unsigned) ((unsigned char const*) p) [1] << 8 |
|
||||
|
Loading…
Reference in New Issue
Block a user