From: Rainer Keller Date: Mon, 30 May 2016 14:53:41 +0000 (+0200) Subject: For non GCC/clang on OSX the -Wno-deprecated-declarations may not be valid X-Git-Tag: release-2.1.6-beta~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5ca3656262b17e83bfa380d7e10218705320f89;p=libevent For non GCC/clang on OSX the -Wno-deprecated-declarations may not be valid Closes: nmathewson/Libevent#129 --- diff --git a/configure.ac b/configure.ac index 334d2968..215c853e 100644 --- a/configure.ac +++ b/configure.ac @@ -85,13 +85,14 @@ if test "$GCC" = "yes" ; then fi # OS X Lion started deprecating the system openssl. Let's just disable -# all deprecation warnings on OS X. -case "$host_os" in - - darwin*) - CFLAGS="$CFLAGS -Wno-deprecated-declarations" - ;; -esac +# all deprecation warnings on OS X; but do so only for gcc... +if test "$GCC" = "yes" ; then + case "$host_os" in + darwin*) + CFLAGS="$CFLAGS -Wno-deprecated-declarations" + ;; + esac +fi AC_ARG_ENABLE(gcc-warnings, AS_HELP_STRING(--disable-gcc-warnings, disable verbose warnings with GCC))