Skip to content

Add casts and widen a variable to make MSVC happy#60568

Merged
dseguin merged 1 commit intoCleverRaven:masterfrom
irwiss:msvc-template-warning-spam
Sep 1, 2022
Merged

Add casts and widen a variable to make MSVC happy#60568
dseguin merged 1 commit intoCleverRaven:masterfrom
irwiss:msvc-template-warning-spam

Conversation

@irwiss
Copy link
Contributor

@irwiss irwiss commented Aug 29, 2022

Summary

None

Purpose of change

MSVC spams build output with template messages because of implicit size_t to int and double to int conversions

Describe the solution

Widens one variable and adds a few casts to squelch warnings

Not too sure why this doesn't appear to be an issue on clang/gcc in CI, may be different templates in stdlib or warning turned off?

Describe alternatives you've considered

Testing

Run a clean rebuild, at the end of it there should be nothing extra in output window except list of files and no warnings / messages in error list window.

Additional context

4 warnings/39 messages before patch - 0/0 after
647 lines of output before patch - 377 lines of output after patch = ~270 lines of template warning copypasta

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Aug 29, 2022
@irwiss irwiss marked this pull request as ready for review August 29, 2022 18:43
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Aug 29, 2022
@dseguin dseguin merged commit 7922273 into CleverRaven:master Sep 1, 2022
@irwiss irwiss deleted the msvc-template-warning-spam branch September 1, 2022 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world json-styled JSON lint passed, label assigned by github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants