isl-org / isl-org/Open3D

Where to disable those unused argument errors ?

Open
#5,466 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### My Question

```console
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](https://github.com/isl-org/Open3D/blob/master/cmake/Open3DShowAndAbortOnWarning.cmake), there is a ** -Wno-unused-parameter **.

```cmake
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??

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.