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: Update crashpad and suppress C5105 #428

Merged
merged 2 commits into from
Nov 20, 2020
Merged

fix: Update crashpad and suppress C5105 #428

merged 2 commits into from
Nov 20, 2020

Conversation

Swatinem
Copy link
Member

This warning was newly introduced in VS 16.8, but breaks with the
Windows SDKs own winbase.h header. We will just suppress it for now.

This warning was newly introduced in VS 16.8, but breaks with the
Windows SDKs own `winbase.h` header. We will just suppress it for now.
@Swatinem Swatinem requested a review from a team November 20, 2020 09:18
@Swatinem Swatinem requested review from flub and jan-auer November 20, 2020 11:17
sentry_pathchar_t *filename
= (sentry_pathchar_t *)sentry__path_filename(dir_path);
if (filename > dir_path->path) {
*(filename - 1) = L'\0';
Copy link
Contributor

Choose a reason for hiding this comment

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

C is so scary

Copy link
Member Author

Choose a reason for hiding this comment

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

Hahaha, I constantly facepalming why we have to write all this horrible code over and over again just because C does not have a sufficiently good std lib, such as Rusts Path(Buf) / &str/String 🤦‍♂️

@Swatinem Swatinem merged commit 079993a into master Nov 20, 2020
@Swatinem Swatinem deleted the fix/msvc-warn branch November 20, 2020 13:30
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.

3 participants