From b143717cbd4b3131d5994fb7074b6ffeaf84aa1c Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 11 Jul 2020 11:48:36 +0800 Subject: [PATCH] Build: Change warning to -Wno-deprecated-declarations --- trunk/configure | 2 +- trunk/src/app/srs_app_rtc_dtls.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/trunk/configure b/trunk/configure index 605fc2db8..48bf155fc 100755 --- a/trunk/configure +++ b/trunk/configure @@ -84,7 +84,7 @@ END # enable gdb debug GDBDebug=" -g -O0" # the warning level. -WarnLevel=" -Wall" +WarnLevel=" -Wall -Wno-deprecated-declarations" # the compile standard. CppStd="-ansi" if [[ $SRS_CXX11 == YES ]]; then diff --git a/trunk/src/app/srs_app_rtc_dtls.cpp b/trunk/src/app/srs_app_rtc_dtls.cpp index 838bcb9ce..80c7cc0ae 100644 --- a/trunk/src/app/srs_app_rtc_dtls.cpp +++ b/trunk/src/app/srs_app_rtc_dtls.cpp @@ -281,7 +281,6 @@ SSL_CTX* SrsDtls::build_dtls_ctx() #endif if (_srs_rtc_dtls_certificate->is_ecdsa()) { // By ECDSA, https://stackoverflow.com/a/6006898 - #if OPENSSL_VERSION_NUMBER >= 0x10002000L // v1.0.2 // For ECDSA, we could set the curves list. // @see https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_set1_curves_list.html