Use pragma for deprecated warning message MSVC compiler#609
Merged
vgvassilev merged 1 commit intocompiler-research:mainfrom May 30, 2025
Merged
Conversation
Collaborator
Author
|
This is what you get on Windows for anything built on top of CppInterOp using MSVC at the moment which hasn't moved the location of the header file (see here for where screenshot came from https://github.com/compiler-research/CppInterOp/actions/runs/15320997791/job/43104562502#step:10:20006 ) |
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #609 +/- ##
=======================================
Coverage 77.35% 77.35%
=======================================
Files 9 9
Lines 3691 3691
=======================================
Hits 2855 2855
Misses 836 836 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Please include a summary of changes, motivation and context for this PR.
While investigating how to get a Windows build of cppyy here #605 I found that the deprecation message is not understood by the MSVC compiler. Without this fix anything built on top of CppInterOp on Windows using the MSVC compiler will not work.
Fixes # (issue)
Type of change
Please tick all options which are relevant.
Testing
Please describe the test(s) that you added and ran to verify your changes.
Checklist