Build: Change warning to -Wno-deprecated-declarations

pull/1882/head
winlin 5 years ago
parent a6b2e28d50
commit b143717cbd

2
trunk/configure vendored

@ -84,7 +84,7 @@ END
# enable gdb debug # enable gdb debug
GDBDebug=" -g -O0" GDBDebug=" -g -O0"
# the warning level. # the warning level.
WarnLevel=" -Wall" WarnLevel=" -Wall -Wno-deprecated-declarations"
# the compile standard. # the compile standard.
CppStd="-ansi" CppStd="-ansi"
if [[ $SRS_CXX11 == YES ]]; then if [[ $SRS_CXX11 == YES ]]; then

@ -281,7 +281,6 @@ SSL_CTX* SrsDtls::build_dtls_ctx()
#endif #endif
if (_srs_rtc_dtls_certificate->is_ecdsa()) { // By ECDSA, https://stackoverflow.com/a/6006898 if (_srs_rtc_dtls_certificate->is_ecdsa()) { // By ECDSA, https://stackoverflow.com/a/6006898
#if OPENSSL_VERSION_NUMBER >= 0x10002000L // v1.0.2 #if OPENSSL_VERSION_NUMBER >= 0x10002000L // v1.0.2
// For ECDSA, we could set the curves list. // For ECDSA, we could set the curves list.
// @see https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_set1_curves_list.html // @see https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_set1_curves_list.html

Loading…
Cancel
Save