]> granicus.if.org Git - libevent/commitdiff
For non GCC/clang on OSX the -Wno-deprecated-declarations may not be valid
authorRainer Keller <rainer.keller@hft-stuttgart.de>
Mon, 30 May 2016 14:53:41 +0000 (16:53 +0200)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 8 Jun 2016 11:31:29 +0000 (14:31 +0300)
Closes: nmathewson/Libevent#129
configure.ac

index 334d29686c4f88281c51607a994257dc41064f0e..215c853ede1a790c3fe92969a449da0942c15055 100644 (file)
@@ -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))