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

Update vcpkg SHA to match the C++ repo #2869

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Conversation

antkmsft
Copy link
Member

@antkmsft antkmsft commented Jul 12, 2024

SHA update: Same reason as for #2808, same SHA as in Azure/azure-sdk-for-cpp#5772.

Bug fix: I had to fix the CI warning, "warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.", and I noticed that in our code, sizeof('\0') is written with an epxectation that it will evaluate to 1. But this is one of the few things that are different between C and C++, see https://stackoverflow.com/questions/2172943/why-is-the-size-of-a-character-sizeofa-different-in-c-and-c.

@antkmsft antkmsft added the EngSys This issue is impacting the engineering system. label Jul 12, 2024
@antkmsft antkmsft self-assigned this Jul 12, 2024
… 4, but sizeof(int)).

See https://stackoverflow.com/questions/2172943/why-is-the-size-of-a-character-sizeofa-different-in-c-and-c

Fixes error C2220: the following warning is treated as an error
iot_sample_common.c(337): warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.
iot_sample_common.c(354): warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.
@antkmsft antkmsft merged commit 97b1b79 into Azure:main Jul 12, 2024
48 checks passed
@antkmsft antkmsft deleted the vcpkg-sha-2024-07 branch July 12, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants