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

More clang fixes #222

Merged
merged 2 commits into from
Mar 30, 2014
Merged

More clang fixes #222

merged 2 commits into from
Mar 30, 2014

Conversation

comex
Copy link
Contributor

@comex comex commented Mar 28, 2014

Is this thing on?

@delroth
Copy link
Member

delroth commented Mar 28, 2014

@dolphin-emu-bot rebuild

@delroth
Copy link
Member

delroth commented Mar 28, 2014

What clang version are you using? Maybe the buildbot needs to be upgraded, cc @Tilka @degasus.

Other than that, LGTM, I'll let @neobrain comment on the enum thing since I think it's one of his recent changes.

U8 = 5,
V8 = 6,
YUV420 = 7,
INVALID_FMT = 0xffffffff,

This comment was marked as off-topic.

This is undefined behavior in C++, and a clang warning suggests it is
actually producing bad code as a result:

../Source/Core/VideoCommon/BPFunctions.cpp:164:45: warning: comparison of constant 4294967295 with expression of type 'PEControl::PixelFormat' is always false [-Wtautological-constant-out-of-range-compare]
        if (new_format == old_format || old_format == (unsigned int)-1)
@comex
Copy link
Contributor Author

comex commented Mar 30, 2014

Did so. (If only std::optional would be standardized already...)

@Parlane
Copy link
Member

Parlane commented Mar 30, 2014

LGTM

@lioncash
Copy link
Member

Looks fine.

delroth added a commit that referenced this pull request Mar 30, 2014
@delroth delroth merged commit 9b03178 into dolphin-emu:master Mar 30, 2014
@comex comex deleted the more-clang-fixes branch September 23, 2014 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants