diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2014-08-22 01:44:29 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2014-08-22 01:44:29 +0000 |
commit | 4d106e01abeef932206c750777a87de1e72bb460 (patch) | |
tree | fb251ba49b78343c93d36a265d31a38352bece63 | |
parent | 1a22e862568f650729f66bbc38fc11b9aa92b370 (diff) |
Misc (re #1751): Suppress compile warnings of OpenSSL deprecation on MacOSX.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4901 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjlib/src/pj/ssl_sock_ossl.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pjlib/src/pj/ssl_sock_ossl.c b/pjlib/src/pj/ssl_sock_ossl.c index 0d9f8a4f..84ff5d92 100644 --- a/pjlib/src/pj/ssl_sock_ossl.c +++ b/pjlib/src/pj/ssl_sock_ossl.c @@ -57,6 +57,15 @@ #endif +/* Suppress compile warning of OpenSSL deprecation (OpenSSL is deprecated + * since MacOSX 10.7). + */ +#if defined(PJ_DARWINOS) && PJ_DARWINOS==1 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + + /* * SSL/TLS state enumeration. */ @@ -2698,5 +2707,12 @@ PJ_DEF(pj_status_t) pj_ssl_sock_renegotiate(pj_ssl_sock_t *ssock) return status; } + +/* Put back deprecation warning setting */ +#if defined(PJ_DARWINOS) && PJ_DARWINOS==1 +# pragma GCC diagnostic pop +#endif + + #endif /* PJ_HAS_SSL_SOCK */ |