Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Silence some warnings #3692

wants to merge 5 commits into from

Conversation

hcorion
Copy link
Member

@hcorion hcorion commented Nov 2, 2017

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.

}

Copy link
Member

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

Copy link
Member Author

@hcorion hcorion Nov 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@@ -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;
Copy link
Member

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.

Copy link
Member Author

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 👍

@@ -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);
Copy link

@OverlordCW OverlordCW Nov 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unknown

Copy link
Contributor

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

Copy link
Member Author

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 .

@@ -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.");
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again

@Nekotekina Nekotekina mentioned this pull request Nov 29, 2017
@hcorion
Copy link
Member Author

hcorion commented Nov 29, 2017

Superceded by #3806

@hcorion hcorion closed this Nov 29, 2017
@Nekotekina Nekotekina reopened this Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants