silence a few warnings

This commit is contained in:
Daryl 2020-06-28 13:45:36 -06:00
parent f875dfe346
commit d6eeb5c77d
3 changed files with 6 additions and 14 deletions

View File

@ -3135,8 +3135,13 @@ static void ScreenPositionWindowUpdate(void * ptr, int x, int y)
GCSettings.xshift += x; GCSettings.xshift += x;
GCSettings.yshift += y; 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]; char shift[10];
sprintf(shift, "%i, %i", GCSettings.xshift, GCSettings.yshift); sprintf(shift, "%hd, %hd", GCSettings.xshift, GCSettings.yshift);
settingText->SetText(shift); settingText->SetText(shift);
b->ResetState(); b->ResetState();
} }

View File

@ -866,8 +866,6 @@ void SPC_DSP::init( void* ram_64k )
int i; int i;
i = +0x8000; CLAMP16( i ); assert( i == +0x7FFF ); i = +0x8000; CLAMP16( i ); assert( i == +0x7FFF );
i = -0x8001; CLAMP16( i ); assert( i == -0x8000 ); i = -0x8001; CLAMP16( i ); assert( i == -0x8000 );
blargg_verify_byte_order();
#endif #endif
} }

View File

@ -52,17 +52,6 @@
#undef BLARGG_BIG_ENDIAN #undef BLARGG_BIG_ENDIAN
#endif #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 ) inline unsigned get_le16( void const* p )
{ {
return (unsigned) ((unsigned char const*) p) [1] << 8 | return (unsigned) ((unsigned char const*) p) [1] << 8 |