quicknes: clean up a few warnings
This commit is contained in:
parent
2009e07e35
commit
c966b09bcf
Binary file not shown.
|
@ -232,7 +232,8 @@ static const BOOST::uint8_t val_tab[6]={0,0xC0,0xE0,0xF0,0xF8,0xFC};
|
|||
|
||||
size_t utf8_char_len_from_header( char p_c )
|
||||
{
|
||||
BOOST::uint8_t c = (BOOST::uint8_t)p_c;
|
||||
// what is this?
|
||||
// BOOST::uint8_t c = (BOOST::uint8_t)p_c;
|
||||
|
||||
size_t cnt = 0;
|
||||
for(;;)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CXX = g++
|
||||
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -I.. -Wno-multichar -O3 -fno-exceptions -fomit-frame-pointer
|
||||
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer
|
||||
TARGET = libquicknes.dll
|
||||
LDFLAGS = -shared -static-libgcc -static-libstdc++
|
||||
LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS)
|
||||
RM = rm
|
||||
CP = cp
|
||||
|
||||
|
|
|
@ -213,7 +213,9 @@ void Nes_Core::enable_sram( bool b, bool read_only )
|
|||
|
||||
// Unmapped memory
|
||||
|
||||
#if !defined (NDEBUG) && 0
|
||||
static nes_addr_t last_unmapped_addr;
|
||||
#endif
|
||||
|
||||
void Nes_Core::log_unmapped( nes_addr_t addr, int data )
|
||||
{
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
|
||||
inline void blargg_verify_byte_order()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#if BLARGG_BIG_ENDIAN
|
||||
volatile int i = 1;
|
||||
assert( *(volatile char*) &i == 0 );
|
||||
|
@ -60,6 +61,7 @@ inline void blargg_verify_byte_order()
|
|||
volatile int i = 1;
|
||||
assert( *(volatile char*) &i != 0 );
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
inline unsigned get_le16( void const* p ) {
|
||||
|
|
Loading…
Reference in New Issue