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} )
|
if ( ${ASAN_ENABLE} )
|
||||||
add_definitions( -fsanitize=address -fsanitize=bounds-strict )
|
add_definitions( -fsanitize=address -fsanitize=bounds-strict )
|
||||||
|
add_definitions( -fsanitize=undefined -fno-sanitize=vptr )
|
||||||
set( ASAN_LDFLAGS -lasan -lubsan)
|
set( ASAN_LDFLAGS -lasan -lubsan)
|
||||||
message( STATUS "Address Sanitizer Enabled" )
|
message( STATUS "Address Sanitizer Enabled" )
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -1133,7 +1133,7 @@ void ppuPatternView_t::paintEvent(QPaintEvent *event)
|
||||||
|
|
||||||
xx = 0; yy = 0;
|
xx = 0; yy = 0;
|
||||||
|
|
||||||
showSelector = (cycleCount < 20);
|
showSelector = (cycleCount < 20) && (selTile.x() >= 0) && (selTile.y() >= 0);
|
||||||
|
|
||||||
if ( mode == 1 )
|
if ( mode == 1 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -409,6 +409,7 @@ MovieData::MovieData()
|
||||||
, rerecordCount(0)
|
, rerecordCount(0)
|
||||||
, binaryFlag(false)
|
, binaryFlag(false)
|
||||||
, loadFrameCount(-1)
|
, loadFrameCount(-1)
|
||||||
|
, fourscore(false)
|
||||||
, microphone(false)
|
, microphone(false)
|
||||||
, RAMInitOption(0)
|
, RAMInitOption(0)
|
||||||
, RAMInitSeed(0)
|
, RAMInitSeed(0)
|
||||||
|
|
Loading…
Reference in New Issue