-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
For example:
$ scons --mute -j 8 --dd --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --cache scons: Reading SConscript files ... scons version: 2.3.0 python version: 2 7 5 'final' 0 Checking whether the C++ compiler works(cached) yes Checking whether the C compiler works(cached) yes Checking if C++ compiler "/usr/bin/clang++" is GCC... (cached) no Checking if C++ compiler "/usr/bin/clang++" is clang... (cached) yes Checking if C compiler "/usr/bin/clang" is clang... (cached) yes Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes Checking if C compiler supports -Wno-unused-function... (cached) yes Checking if C compiler supports -Wno-unused-private-field... (cached) yes Checking if C compiler supports -Wno-mismatched-tags... (cached) yes Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) yes Checking if C compiler supports -Wno-unused-const-variable... (cached) yes Checking if C compiler supports -mmacosx-version-min=10.6... (cached) yes Checking for C header file unistd.h... (cached) yes Checking whether clock_gettime is declared... (cached) no Checking for C++ header file execinfo.h... (cached) yes Checking whether backtrace is declared... (cached) yes Checking whether backtrace_symbols is declared... (cached) yes Checking whether backtrace_symbols_fd is declared... (cached) yes Checking for C library pcap... (cached) yes Checking if __malloc_hook is declared volatile... (cached) no scons: done reading SConscript files. scons: Building targets ... Compiling build/cached/mongo/db/db.o error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-unused-const-variable'; did you mean '-Wno-unused-variable'? [-Werror,-Wunknown-warning-option] ...
I think for clang we can use "-Qunused-arguments" to get the same effect we wanted with these flags.