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>
This commit is contained in:
parent
90fa7296c2
commit
03dc77e07b
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue