Skip to content

Fix: MSVC warning 5050 was not really suppressed #937

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
Jan 16, 2024

Conversation

adah1972
Copy link
Contributor

The pragma should be put before the import, not after.

The pragma should be put before the import, not after.
@adah1972
Copy link
Contributor Author

The warning still appeared when I issued the command line as follows:

cppfront -p demo.cpp2
cl /nologo /std:c++20 /EHsc /Iinclude /MD /experimental:module demo.cpp

The warning is now gone after the change.

@hsutter
Copy link
Owner

hsutter commented Jan 16, 2024

Thanks for your pull request! It looks like this may be your first contribution to cppfront. I've sent the Contributor License Agreement (CLA) to your email, and once it's signed I can look at your pull request. Thanks again for your contribution.

@hsutter
Copy link
Owner

hsutter commented Jan 16, 2024

Thanks!

@hsutter hsutter merged commit aac78b6 into hsutter:main Jan 16, 2024
@adah1972 adah1972 deleted the fix-msvc-module-warning branch January 18, 2024 00:27
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