From: Matt Caswell Date: Sun, 11 Oct 2015 15:59:08 +0000 (+0100) Subject: Further OS-X deprecated warnings tweak X-Git-Tag: OpenSSL_1_1_0-pre1~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03dc77e07bf0f60a39872946405f1188daad3604;p=openssl Further OS-X deprecated warnings tweak Even with _XOPEN_SOURCE defined OS-X still displays warnings that makecontext and friends are deprecated. This isn't a problem until you try and build with --strict-warnings, and the build fails. This change suppresses the warnings. We know they are deprecated but there is no alternative! Reviewed-by: Rich Salz --- diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 0f91464713..d5b23997ad 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -63,9 +63,11 @@ /* * Some platforms complain (e.g. OS-X) that setcontext/getcontext/makecontext - * are deprecated without this defined + * are deprecated without the following defined. We know its deprecated but + * there is no alternative. */ # define _XOPEN_SOURCE +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # include # include