Minor compiler warning cleanup

This commit is contained in:
mjbudd77 2022-03-11 06:58:16 -05:00
parent a4dbabfcc5
commit 9b6ab85424
3 changed files with 6 additions and 3 deletions

View File

@ -5298,7 +5298,10 @@ bool QAsmView::event(QEvent *event)
addr, bank, romOfs );
}
static_cast<asmLookAheadPopup*>(fceuCustomToolTipShow( helpEvent->globalPos(), new asmLookAheadPopup(addr, this) ));
if ( static_cast<asmLookAheadPopup*>(fceuCustomToolTipShow( helpEvent->globalPos(), new asmLookAheadPopup(addr, this) )) == NULL )
{
printf("ASM Lookahead Popup Error\n");
}
//QToolTip::showText(helpEvent->globalPos(), tr(stmp), this );
QToolTip::hideText();
event->ignore();

View File

@ -6261,7 +6261,7 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
FCEU_CRITICAL_SECTION( emuLock );
int x, y, row, nrow, lineNum;
QPainter painter(this);
QColor white(255,255,255), black(0,0,0), blkColor, rowTextColor, hdrGridColor;
QColor /*white(255,255,255),*/ black(0,0,0), blkColor, rowTextColor, hdrGridColor;
static const char *buttonNames[] = { "A", "B", "S", "T", "U", "D", "L", "R", NULL };
char stmp[32];
char rowIsSel=0;

View File

@ -525,7 +525,7 @@ void BOOKMARKS::paintEvent(QPaintEvent *event)
FCEU_CRITICAL_SECTION( emuLock );
QPainter painter(this);
int x, y, item, cell_y;
QColor white(255,255,255), black(0,0,0), blkColor;
QColor white(255,255,255), /*black(0,0,0),*/ blkColor;
char txt[256];
bool timeColBgDone = false;