Minor fixes for warnings found by gcc undefined behavior sanitizer.
This commit is contained in:
parent
f4ea336349
commit
f3b33a628f
|
@ -87,6 +87,7 @@ else(WIN32)
|
|||
|
||||
if ( ${ASAN_ENABLE} )
|
||||
add_definitions( -fsanitize=address -fsanitize=bounds-strict )
|
||||
add_definitions( -fsanitize=undefined -fno-sanitize=vptr )
|
||||
set( ASAN_LDFLAGS -lasan -lubsan)
|
||||
message( STATUS "Address Sanitizer Enabled" )
|
||||
else()
|
||||
|
|
|
@ -1133,7 +1133,7 @@ void ppuPatternView_t::paintEvent(QPaintEvent *event)
|
|||
|
||||
xx = 0; yy = 0;
|
||||
|
||||
showSelector = (cycleCount < 20);
|
||||
showSelector = (cycleCount < 20) && (selTile.x() >= 0) && (selTile.y() >= 0);
|
||||
|
||||
if ( mode == 1 )
|
||||
{
|
||||
|
|
|
@ -409,6 +409,7 @@ MovieData::MovieData()
|
|||
, rerecordCount(0)
|
||||
, binaryFlag(false)
|
||||
, loadFrameCount(-1)
|
||||
, fourscore(false)
|
||||
, microphone(false)
|
||||
, RAMInitOption(0)
|
||||
, RAMInitSeed(0)
|
||||
|
|
Loading…
Reference in New Issue