From 107c6322207c3438b3ad4593a652bf4e45053a16 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Sat, 4 Apr 2020 11:09:12 -0700 Subject: [PATCH] obs-outputs: Fix warnings WITH_RTMPS=OFF Some unused variables were not marked unused when RTMPS was disabled. --- plugins/obs-outputs/librtmp/rtmp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index 119bb6259..894582bfe 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -360,6 +360,8 @@ error: mbedtls_x509_crt_free(chain); free(chain); r->RTMP_TLS_ctx->cacert = NULL; +#else /* USE_MBEDTLS */ + UNUSED_PARAMETER(r); #endif /* USE_MBEDTLS */ } @@ -407,6 +409,7 @@ RTMP_TLS_Init(RTMP *r) SSL_CTX_set_default_verify_paths(RTMP_TLS_ctx); #endif #else + UNUSED_PARAMETER(r); #endif } @@ -429,6 +432,8 @@ RTMP_TLS_Free(RTMP *r) { // NO mbedtls_net_free() BECAUSE WE SET IT UP BY HAND! free(r->RTMP_TLS_ctx); r->RTMP_TLS_ctx = NULL; +#else + UNUSED_PARAMETER(r); #endif }