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

resize_and_overwrite: fix warning C4018 #2525

Merged
merged 2 commits into from
Feb 12, 2022

Conversation

fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented Feb 7, 2022

Fixes #2524

cmp_less_equal is in utility

xutility includes utility

xmemory includes xutility

xstring includes xmemory

@fsb4000 fsb4000 requested a review from a team as a code owner February 7, 2022 13:19
@cpplearner
Copy link
Contributor

cmp_less_equal doesn't work with the upcoming _Unsigned128 (#2518) though.

Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Feb 7, 2022
Comment on lines +2387 to +2388
void test_gh_2524() // COMPILE-ONLY
{
Copy link
Member

Choose a reason for hiding this comment

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

No change requested (mega-nitpick, not worth resetting testing): This brace should be attached to the function. (clang-format would ordinarily fix this, but it's inhibited from doing so by the comment.)

@CaseyCarter CaseyCarter self-assigned this Feb 9, 2022
@StephanTLavavej StephanTLavavej self-assigned this Feb 11, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo. Requesting or pushing changes is totally fine, but please notify me if that happens.

@StephanTLavavej StephanTLavavej merged commit 8096a27 into microsoft:main Feb 12, 2022
@StephanTLavavej
Copy link
Member

Thanks for fixing this warning! 🎉 😸 ✅

@fsb4000 fsb4000 deleted the fix2524 branch February 12, 2022 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<xstring>: resize_and_overwrite generates warning C4018 when Operation returns int
5 participants
  翻译: