When using -Werror
with clang, it transforms \"warning: argument unused during compilation\" messages into errors, which makes sense. There\'s a -Qunused-argu
In my case, I had similar issues with autoconf while using clang-8 compiler in ./configure.
*clang-8: error: unknown argument: '-ftree-loop-distribute-patterns'*
*clang-8: error: unknown argument: '-fno-semantic-interposition'*
I needed following command line to fix these errors:
./configure CC=clang-8 CXX=clang++-8 LD=clang++-8 CFLAGS=-Qunused-arguments
Hope this is helpful to others.