Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirror: Always disable unused CLI arguments warning for feature probe
In commit 8a2d7d5 ("mirror: Fix features detection for building with clang") we prevented clang to error out when encountering unused command-line arguments in the feature probes, because we do add unused arguments for some of the probes when retrieving arguments from llvm-config, and we don't want probes to fail because of that. At the time, the issue was apparent for the LLVM-based disassembler, so we added -Wno-unused-command-line-argument when $(LLVM) was enabled, only. We missed the case when we're building bpftool with clang instead of gcc, without building the LLVM disassembler. Let's disable the warning unconditionally instead to fix this case. Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Quentin Monnet <qmo@kernel.org>
- Loading branch information