Skip to content

Use pragma for deprecated warning message MSVC compiler #609

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

Conversation

mcbarton
Copy link
Collaborator

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.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

@mcbarton mcbarton requested a review from vgvassilev May 30, 2025 14:08
@mcbarton
Copy link
Collaborator Author

image

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 )

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.35%. Comparing base (16530ca) to head (e967f03).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Lgtm!

@vgvassilev vgvassilev merged commit 0e399f1 into compiler-research:main May 30, 2025
78 checks passed
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