-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Mark include directories of 3rd-party libraries as system includes #2733
Conversation
21d6a98
to
ce6cd2d
Compare
This is a good idea indeed, thanks! However, there are still plenty of warnings from VTK, e.g.:
and also from "surface/src/3rdparty/opennurbs/". |
ce6cd2d
to
bcf6f7d
Compare
I ran yesterday a build with
I can't exclude non header code from check. Only way: create a library with 3rd-party code and disable all warnings manually for this project. |
I think it's a reasonable approach to create a small static library for each of the bundled 3rd party dependencies and then link it into a correspondent PCL module. |
Maybe I do this next year. I think I will shutdown my dev PC remotely today or tomorrow (just still running in case I have to adjust a PR ;) ), so I don't do anything big anymore this year. |
Still some VTK warnings left...
I've done a lot lately. Have a good break and recharge your batteries! |
…o prevent compiler warnings which are not caused by PCL code
bcf6f7d
to
3726087
Compare
Seems I caught now everything of VTK, so this PR is ready to merge :). Boost and CUDA will be in a separate PR, because Boost will be fixed with switch to importet target and CUDA I have currently no idea 😢 So I'm ready for a break 😄
Thx, you too :) |
Ooops, of course I meant to write "YOU've done a lot lately" 😅 |
Not all include directories of 3rd-party were marked as system include directories. Fixed it with this commit.
This should fix warnings like this
After this PR it should be possible to add sth. like this (starting with a lot of exceptions in PCL ;) ), to have a stronger check for new code in upcoming PR.