Skip to content

Commit

Permalink
Silence warnings in misc files (gui, psp2, mfc, mouse)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcorion committed Nov 2, 2017
1 parent b986286 commit 7b220da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rpcs3/Emu/Cell/MFC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ void fmt_class_string<MFC>::format(std::string& out, u64 arg)
case MFC_BARRIER_CMD: return "BARRIER";
case MFC_EIEIO_CMD: return "EIEIO";
case MFC_SYNC_CMD: return "SYNC";
default: return unknown;
}

return unknown;
});
}

Expand Down
3 changes: 3 additions & 0 deletions rpcs3/Emu/PSP2/ARMv7DisAsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ void ARMv7DisAsm::Write(const std::string& value)
case CPUDisAsm_InterpreterMode:
last_opcode += fmt::format(": %s", str);
break;
case CPUDisAsm_CompilerElfMode:
write("ERROR: Trying to load unimplemented CPU DisAsm mode, CompilerElfMode.");
break;
}
}

Expand Down
1 change: 1 addition & 0 deletions rpcs3/basic_mouse_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ bool basic_mouse_handler::eventFilter(QObject* target, QEvent* ev)
case QEvent::Wheel:
MouseScroll(static_cast<QWheelEvent*>(ev));
break;
default: return false;
}
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/rpcs3qt/game_list_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private Q_SLOTS:
/** Override inherited method from Qt to allow signalling when close happened.*/
void closeEvent(QCloseEvent* event) override;
void resizeEvent(QResizeEvent *event) override;
bool eventFilter(QObject *object, QEvent *event);
bool eventFilter(QObject *object, QEvent *event) override;
private:
QPixmap PaintedPixmap(const QImage& img, bool paintConfigIcon = false);
bool Boot(const GameInfo& info);
Expand Down

0 comments on commit 7b220da

Please sign in to comment.