mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
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:
parent
f2428a284b
commit
b56611d705
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user