diff options
author | Sergei Krivonos <sergeikrivonos@gmail.com> | 2021-10-06 11:31:08 +0300 |
---|---|---|
committer | Sergei Krivonos <sergeikrivonos@gmail.com> | 2021-10-08 17:05:52 +0300 |
commit | 164e84c9efb5a7f9fa90989e482ed9e1f49a39dc (patch) | |
tree | f68f6924279b1e35c0b5962103756d61c59d969d /mysys/my_context.c | |
parent | c4a58ca06a82e7fe94603f1d6cbcf1099b48c28d (diff) | |
download | mariadb-git-10.2-MDEV-19129.tar.gz |
Xcode compatibility update10.2-MDEV-19129
Diffstat (limited to 'mysys/my_context.c')
-rw-r--r-- | mysys/my_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysys/my_context.c b/mysys/my_context.c index cf10738bdbd..f3aef23e07a 100644 --- a/mysys/my_context.c +++ b/mysys/my_context.c @@ -29,6 +29,10 @@ #endif #ifdef MY_CONTEXT_USE_UCONTEXT +#ifdef __APPLE__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif /* The makecontext() only allows to pass integers into the created context :-( We want to pass pointers, so we do it this kinda hackish way. @@ -154,6 +158,9 @@ my_context_destroy(struct my_context *c) DBUG_FREE_CODE_STATE(&c->dbug_state); } +#ifdef __APPLE__ +#pragma GCC diagnostic pop +#endif #endif /* MY_CONTEXT_USE_UCONTEXT */ |