-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silence some warnings #3692
Silence some warnings #3692
Conversation
414ff65
to
7b220da
Compare
Utilities/Log.cpp
Outdated
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be abandoned in most cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
rpcs3/Emu/Cell/lv2/lv2.cpp
Outdated
@@ -969,9 +969,8 @@ void fmt_class_string<CellError>::format(std::string& out, u64 arg) | |||
STR_CASE(CELL_ESDKVER); | |||
STR_CASE(CELL_ENOLICDISC); | |||
STR_CASE(CELL_ENOLICENT); | |||
default: return unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was the point: see the warning and add unimplemented case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, reverted in hopes that it gets implement soon 👍
7b220da
to
78ee868
Compare
rpcs3/Emu/RSX/GL/GLHelpers.cpp
Outdated
@@ -22,8 +22,8 @@ namespace gl | |||
case rsx::primitive_type::quads: return GL_TRIANGLES; | |||
case rsx::primitive_type::quad_strip: return GL_TRIANGLE_STRIP; | |||
case rsx::primitive_type::polygon: return GL_TRIANGLES; | |||
default: fmt::throw_exception("unknow primitive type" HERE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unknown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put all throws on their own line. breakpoints are the only way to obtain backtraces to identify the culprit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks @OverlordCW .
Should be addressed @kd-11 .
78ee868
to
1307ca2
Compare
@@ -202,6 +202,7 @@ 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."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default on newline
@@ -1379,9 +1379,8 @@ namespace gl | |||
case internal_format::compressed_rgba_s3tc_dxt3: | |||
case internal_format::compressed_rgba_s3tc_dxt5: | |||
return true; | |||
default: return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -1071,9 +1071,8 @@ namespace rsx | |||
case rsx::vertex_base_type::s32k: | |||
case rsx::vertex_base_type::ub256: | |||
return true; | |||
default: return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
Superceded by #3806 |
This touches all different parts of the code base, so I'm requesting review from @Nekotekina and @kd-11 , as some assumptions I made may be incorrect, and some of the errors may provide wrong/not enough information.