aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/async
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-11 16:59:08 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:35:19 +0000
commit03dc77e07bf0f60a39872946405f1188daad3604 (patch)
tree742ea05d21cec7374113d5f282b532fd42feecb7 /crypto/async
parent90fa7296c22583a0a42203b078979bbfb2fcb11d (diff)
downloadopenssl-03dc77e07bf0f60a39872946405f1188daad3604.tar.gz
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 <rsalz@openssl.org>
Diffstat (limited to 'crypto/async')
-rw-r--r--crypto/async/arch/async_posix.h4
1 files changed, 3 insertions, 1 deletions
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 <ucontext.h>
# include <setjmp.h>