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

Remove use of deprecated concatenatePointCloud #3364

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

kunaltyagi
Copy link
Member

@kunaltyagi kunaltyagi commented Sep 26, 2019

Fixes #3349.

@taketwo taketwo changed the title Fixes #3349, removes use of deprecated concatenatePointCloud Remove use of deprecated concatenatePointCloud Sep 26, 2019
@taketwo
Copy link
Member

taketwo commented Sep 26, 2019

Is it also possible to locally disable deprecation warnings in test_io.cpp?

@kunaltyagi
Copy link
Member Author

locally disable deprecation warnings

-Wno-deprecated can be applied to a target manually.

@taketwo
Copy link
Member

taketwo commented Sep 26, 2019

Yes, but AFAIR we create test targets using a CMake macro, so not easy to add a custom option. Can we rather do it in code?

@kunaltyagi
Copy link
Member Author

kunaltyagi commented Sep 26, 2019

Can we rather do it in code?

Yes! But it might be compiler dependent. Clang usually respects GCC pragmas, but I don't know about MSVC++.

For more details regarding the following snippet, link

#pragma GCC diagnostic ignored -Wdeprecated
#pragma GCC diagnostic push

... code ...
#pragma diagnostic pop

@taketwo
Copy link
Member

taketwo commented Sep 26, 2019

I think GCC would be enough, the log in Windows is full of warnings anyway :)

@taketwo
Copy link
Member

taketwo commented Sep 26, 2019

AppleClang 10 does not seem to like this:

/Users/vsts/agent/2.155.1/work/1/s/test/common/test_io.cpp:133:32: error: expected string literal in pragma diagnostic
#pragma GCC diagnostic ignored -Wdeprecated
                               ^

@kunaltyagi
Copy link
Member Author

Why does Apple have to be so weird? 😆 I'll try somethings and get back later

Copy link
Member

@taketwo taketwo left a comment

Choose a reason for hiding this comment

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

Please join the last two commits into one.

@taketwo taketwo merged commit 4c6c210 into PointCloudLibrary:master Sep 26, 2019
@kunaltyagi kunaltyagi deleted the fix-3349 branch September 26, 2019 15:28
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.

Do not use deprecated concatenatePointCloud()
2 participants