Skip to content

Silence noisy (and useless) MSVC warnings #515

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

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Sep 10, 2024

No description provided.

@saghul saghul marked this pull request as draft September 10, 2024 07:21
@saghul saghul force-pushed the silence-msvc-warnings branch 5 times, most recently from 3df48ec to b1d1c51 Compare September 10, 2024 08:09
@saghul saghul marked this pull request as ready for review September 10, 2024 08:09
@saghul
Copy link
Contributor Author

saghul commented Sep 10, 2024

This one is ready, the build output is not so noisy now. The silenced warnings mostly match whe ones we have for other compilers.

@saghul saghul force-pushed the silence-msvc-warnings branch from b1d1c51 to 0396e71 Compare September 10, 2024 10:45
CMakeLists.txt Outdated
xcheck_add_c_compiler_flag(/wd4711)
xcheck_add_c_compiler_flag(/wd4820)
xcheck_add_c_compiler_flag(/wd4996)
xcheck_add_c_compiler_flag(/wd5045)
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be helpful to have comments explaining what warnings they suppress and/or mentions their gcc counterpart, e.g.

xcheck_add_c_compiler_flag(/wd4100) # -Wno-unused-parameter

@saghul saghul force-pushed the silence-msvc-warnings branch 2 times, most recently from d5cea0f to 909624c Compare September 11, 2024 17:43
@saghul saghul force-pushed the silence-msvc-warnings branch from 909624c to 19d2e7a Compare September 11, 2024 17:51
@saghul saghul merged commit 5765855 into master Sep 11, 2024
50 checks passed
@saghul saghul deleted the silence-msvc-warnings branch September 11, 2024 18:15
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.

2 participants