-
Notifications
You must be signed in to change notification settings - Fork 552
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: Ignore C4668 when preprocessing via MSVC #1730
fix: Ignore C4668 when preprocessing via MSVC #1730
Conversation
is it possible to add a test for this? thanks |
Absolutely, I'm on vacation right now without access to a computer I could run the tests on. Back home around the 7th of May. Happy to amend this with a test then. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1730 +/- ##
==========================================
- Coverage 29.44% 29.40% -0.04%
==========================================
Files 49 49
Lines 17713 17713
Branches 8547 8547
==========================================
- Hits 5215 5209 -6
Misses 7347 7347
- Partials 5151 5157 +6
☔ View full report in Codecov by Sentry. |
@sylvestre I've written a minimal integration test to verify the behaviour. There aren't currently any unit tests for the msvc preprocessing method. I could add one if required, but it might require other changes to make the preprocessing method more testable. |
451245d
to
9720864
Compare
Updated the test just now to actually use sccache 😅 |
9720864
to
df8085d
Compare
Removed the additional call to cl that shows the 4668 warning because it terminates the build, and it isn't necessary. |
Oh interesting, the test failed! Will investigate tomorrow. |
df8085d
to
0e68e34
Compare
OK the test revealed that simply changing the warning to level 4 isn't enough, it must be entirely disabled. I've updated the code, test should pass in CI now. |
Test passing now 👍 |
0e68e34
to
8cf57a8
Compare
8cf57a8
to
5310b46
Compare
5310b46
to
071d680
Compare
This fixes #1725.