Open3D
Open3D copied to clipboard
Where to disable those unused argument errors ?
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
masterbranch).
My Question
clang: error: argument unused during compilation: '-L/usr/local/lib' [-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-L/usr/local/cuda/lib64' [-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-L/usr/lib/x86_64-linux-gnu' [-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-L/opt/intel/oneapi/tbb/latest/lib/intel64/gcc4.8' [-Werror,-Wunused-command-line-argument]
clang: error: argument unused during compilation: '-L/opt/intel/oneapi/mkl/latest/lib/intel64' [-Werror,-Wunused-command-line-argument]
I noticed in Open3DShowAndAbortOnWarning.cmake, there is a ** -Wno-unused-parameter **.
set(DISABLE_GNU_CLANG_INTEL_WARNINGS
-Wno-unused-parameter # (many places in Open3D code)
)
In that case, why when I tried to build Open3D, I still obtained the above ERROR messages??