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

Fix almost all GCC warnings #9798

Merged
merged 4 commits into from Feb 18, 2021
Merged

Fix almost all GCC warnings #9798

merged 4 commits into from Feb 18, 2021

Conversation

Nekotekina
Copy link
Member

@Nekotekina Nekotekina commented Feb 17, 2021

Fixed some warnings possibly hiding bugs instead of just silencing them.

@@ -2530,20 +2530,6 @@ namespace rsx
if (cached_dest && cached_dest->get_context() != texture_upload_context::dma)
{
// NOTE: DMA sections are plain memory blocks with no format!
if (src_is_render_target || is_format_convert)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this section removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

src_is_depth is unused.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's effectively dead code

@Nekotekina Nekotekina merged commit c8fefc4 into RPCS3:master Feb 18, 2021
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