You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Misc small fixes and improvements
- switch vmImage to "ubuntu-22.04". This does not make much difference as we use docker anyway, but azure complained that "Ubuntu 20.04" will be removed soon
- enable more warnings on clang
- delete several unused variables
- switch from Eigen::EigenSolver to Eigen::SelfAdjointEigenSolver where possible. The latter is faster and more accurate ( https://eigen.tuxfamily.org/dox/classEigen_1_1SelfAdjointEigenSolver.html ). For real matrices, selfadjoint means symmetric, which is for example true for covariance matrices.
- in shot_lrf_omp.hpp, use dynamic schedule because the loop iterations do a radius search, which is quite unbalanced
- fix problem with enum arithmetic in dinast_grabber.cpp
- fix MSVC warning about unsafe bool-int mix in octree_pointcloud.hpp
- in sac_model_torus.hpp, switch from bdcSvd to jacobiSvd. This should save some time and memory while compiling, and the matrix A is so small that bdcSvd would anyway use jacobiSvd internally.
- in flann_search.hpp, use delete[] instead of delete to correctly match the new[]
- in grabcut_segmentation.cpp, check svd.info() to fix warning that svd.singularValues() may be uninitialized
- in octree_poisson.hpp, fix maybe-uninitialized warning
* Add more const
Co-authored-by: Lars Glud <[email protected]>
---------
Co-authored-by: Lars Glud <[email protected]>
set(CMAKE_CXX_FLAGS"-ftemplate-depth=1024 -Qunused-arguments -Wno-invalid-offsetof ${SSE_FLAGS}${AVX_FLAGS}") # Unfortunately older Clang versions do not have this: -Wno-unnamed-type-template-args
234
+
set(CMAKE_CXX_FLAGS"-ftemplate-depth=1024 -Wno-invalid-offsetof ${SSE_FLAGS}${AVX_FLAGS}") # Unfortunately older Clang versions do not have this: -Wno-unnamed-type-template-args
235
235
if(APPLEAND WITH_CUDA AND CUDA_FOUND)
236
236
string(APPENDCMAKE_CXX_FLAGS" -stdlib=libstdc++")
237
237
endif()
238
+
string(APPENDCMAKE_CXX_FLAGS" -Wall -Wextra")
238
239
endif()
239
240
set(CLANG_LIBRARIES "stdc++")
240
241
endif()
@@ -434,6 +435,8 @@ if(WITH_SYSTEM_ZLIB)
434
435
if(ZLIB_FOUND)
435
436
set(HAVE_ZLIB ON)
436
437
endif()
438
+
else()
439
+
message(WARNING "CMake will use a ZLIB version bundled with the PCL source code. However, that is an older version which may pose a risk and may be removed in a future PCL release. It is recommended to install an up-to-date version of ZLIB on your system and set WITH_SYSTEM_ZLIB=TRUE.")
0 commit comments