Add -Qunused-arguments for clang on macos

The clang compiler provided with macosx emits warnings like:

  CC       bufferevent.lo
clang: warning: argument unused during compilation: '-I .'
clang: warning: argument unused during compilation: '-I ./compat'
clang: warning: argument unused during compilation: '-I ./include'
clang: warning: argument unused during compilation: '-I ./include'

for each file being compiled. This generates a lot of noise during
compilation making it hard to see "real" errors. This patch mute
those warnings.
This commit is contained in:
Trond Norbye 2014-02-19 06:49:31 +01:00 committed by Nick Mathewson
parent f2428a284b
commit b56611d705

View File

@ -725,6 +725,15 @@ if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
# Disable the unused-function warnings, because these trigger # Disable the unused-function warnings, because these trigger
# for minheap-internal.h related code. # for minheap-internal.h related code.
CFLAGS="$CFLAGS -Wno-unused-function" CFLAGS="$CFLAGS -Wno-unused-function"
# clang on macosx emits warnigns for each directory specified which
# isn't "used" generating a lot of build noise (typically 3 warnings
# per file
case "$host_os" in
darwin*)
CFLAGS="$CFLAGS -Qunused-arguments"
;;
esac
fi fi
##This will break the world on some 64-bit architectures ##This will break the world on some 64-bit architectures