提交 03dc77e0 编写于 作者: M Matt Caswell

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: NRich Salz <rsalz@openssl.org>
上级 90fa7296
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册