From 77c538bd33e331b58270bc033eecc897a8484116 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 7 Feb 2016 15:30:08 -0800 Subject: [PATCH] obs-outputs: Disabled OpenSSL deprecated warnings on apple Apple wants to get people to move over to their own crypto APIs instead of using OpenSSL, so disable the warning in the files where OpenSSL is used for the time being. --- plugins/obs-outputs/librtmp/hashswf.c | 5 +++++ plugins/obs-outputs/librtmp/rtmp.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/plugins/obs-outputs/librtmp/hashswf.c b/plugins/obs-outputs/librtmp/hashswf.c index a57995f22..b8d5a9ed0 100644 --- a/plugins/obs-outputs/librtmp/hashswf.c +++ b/plugins/obs-outputs/librtmp/hashswf.c @@ -25,6 +25,11 @@ #include "http.h" #ifdef CRYPTO + +#ifdef __APPLE__ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef USE_POLARSSL #include #ifndef SHA256_DIGEST_LENGTH diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index 9758a81a3..f498da91a 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -33,6 +33,11 @@ #include "log.h" #ifdef CRYPTO + +#ifdef __APPLE__ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef USE_POLARSSL #include #include -- GitLab