Suppress "Of *COURSE* you're developing a Mac-only application - you're
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Jun 2013 23:11:05 +0000 (23:11 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Jun 2013 23:11:05 +0000 (23:11 +0000)
on a Mac, right?  So of *COURSE* you want to use our shiny new frameworks
rather than those ugly old open-source multi-platform libraries, right?"
warnings.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@50200 f5534014-38df-0310-8fa8-9805f1628bb7

configure.ac

index 707ed4c442fc0b050cb14c6160435f10683f5556..81103254ffd37d773cfc12abe86f7dee14c73198 100644 (file)
@@ -644,7 +644,19 @@ bar(void)
   [generates warnings from strchr()])
 
 
-## AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-error=unused-but-set-variable)
+#
+# On OS X, suppress warnings about deprecated declarations, because
+# they apparently think everything on OS X is Shiny Happy Apple-
+# Framework-Based Apps and are deprecating some perfectly OK
+# multi-platform open-source libraries that we use in our multi-platform
+# open-source application in favor of various frameworks that are
+# OS X-only.
+#
+case "$host_os" in
+darwin*)
+       AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-deprecated-declarations)
+       ;;
+esac
 
 #
 # Use the faster pre gcc 4.5 floating point precision if available.