Silence warnings in misc files (gui, psp2, mfc, mouse)

This commit is contained in:
Zion Nimchuk 2017-11-01 23:30:34 -07:00 committed by Nekotekina
parent 3a9ae2df9e
commit c424652b43
4 changed files with 17 additions and 3 deletions

View File

@ -202,10 +202,12 @@ void cfg::encode(YAML::Emitter& out, const cfg::_base& rhs)
out << YAML::EndMap;
return;
}
default: LOG_ERROR(GENERAL, "Attempting to cfg encode an unimplemented type.");
default:
{
out << rhs.to_string();
return;
}
}
out << rhs.to_string();
}
void cfg::decode(const YAML::Node& data, cfg::_base& rhs)

View File

@ -50,6 +50,13 @@ 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";
case MFC_BARRIER_MASK:
case MFC_FENCE_MASK:
case MFC_LIST_MASK:
case MFC_START_MASK:
case MFC_RESULT_MASK:
break;
}
return unknown;

View File

@ -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;
}
}

View File

@ -55,6 +55,8 @@ bool basic_mouse_handler::eventFilter(QObject* target, QEvent* ev)
case QEvent::Wheel:
MouseScroll(static_cast<QWheelEvent*>(ev));
break;
default:
return false;
}
}
return false;