From 03dc77e07bf0f60a39872946405f1188daad3604 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Sun, 11 Oct 2015 16:59:08 +0100 Subject: [PATCH] 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 --- crypto/async/arch/async_posix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- GitLab