-
-
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
Treat compiler warnings as errors #3379
Conversation
I think this is a draft: requires discussion, is not mean to be merged. I moved Nurbs to the "Pull requests" section in your list since there is a PR in progress by Sergio. |
In reality, this change does not affect CI runs. In the CI config, we set several CXX flags explicitly, which prevents CMake from entering into the branch on line 112. Therefore, Let us add |
This makes more sense. |
It took 20s for MacOS job to fail the build 😆 |
The error is quite unexpected. Do check it
|
c788fd3
to
ce0f105
Compare
After merging #3477, the Ubuntu 16.04 job will be clean of warnings. I propose to use this opportunity to enable |
For 19.04, the warnings are mainly due to |
This ensures that commits with warnings do not get a pass through CI.
Some commits have been already merged. This will track other warnings based on issues/PR
Current status per CI:
Current status of modules:
getFields(cloud, fields)
#3374throw
specifier #3384MovingLeastSquares
into a separate test case #3382 fixes Ignore deprecated use for testing surface::MovingLeastSquares #3378, Fix copy constructor warning when initializing CloudView #3425 fixes Warning regarding copy ctor in cloud_view.cpp #3405, Update unit tests to support both old and new GTest versions #3677 fixes GTest deprecatedTYPED_TEST_CASE
#3373stereo_ground_segmentation
#3406 fixes Use of deprecated feature (extra unneeded args) in pcl_stereo_ground_segmentation #3403, RemoveSupervoxelClustering::getColoredVoxelCloud()
#3469 fixes Deprecated function getColoredVoxelCloud() is used in cloud composer #1427Other related problems(?):
missing field 'fst_bytesalloc' initializer
: fixed by Add Catalina and Xcode toolchain for MacOS CI #3736ld: warning: text-based stub file are out of sync. Falling back to library file for linking
Possible solutions on SOExport SDK version of MacOS to prevent some linker warnings #3330fixed by Add Catalina and Xcode toolchain for MacOS CI #3736Mismatch in flags for different compilers on the same system (GCC vs Clang on Linux)Mismatch in flags for different compilers on different systems (GCC vs AppleClang vs MSVC)PS: This should be draft or normal PR?Draft/fixes #2746