Skip to content
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 excessive warnings reported by MSVC #3964

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

kunaltyagi
Copy link
Member

Another small PR to workaround MSVC's non-standard behavior.

MSVC doesn't ignore unknown pragma. So this PR disables that particular warning for one particular occurrence of the unknown pragma.

@kunaltyagi kunaltyagi added needs: code review Specify why not closed/merged yet platform: windows module: common changelog: fix Meta-information for changelog generation labels Apr 22, 2020
@SergioRAgostinho
Copy link
Member

SergioRAgostinho commented Apr 22, 2020

Is it not better to actually, pass to MSVC an explicit global option to ignore unknown pragmas. This is something we definitely want to have enabled globally.

Edit: According to this /wdnnnn where nnnn is the warning code.

@kunaltyagi
Copy link
Member Author

No idea on the correct approach since I'm just applying a "patch" to a temporary fix.

We haven't needed this warning before and it'll be removed in 1.12 so modifying behavior of all downwind users temporarily doesn't make much sense.

@SergioRAgostinho SergioRAgostinho removed the needs: code review Specify why not closed/merged yet label Apr 23, 2020
@SergioRAgostinho SergioRAgostinho merged commit 53cf4b7 into PointCloudLibrary:master Apr 23, 2020
@kunaltyagi kunaltyagi deleted the msvc branch April 23, 2020 07:51
@taketwo taketwo changed the title Fix excessive warnings on MSVC Fix excessive warnings reported by MSVC May 10, 2020
truhoang pushed a commit to truhoang/pcl that referenced this pull request Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: common platform: windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants