Build: Refine build script.

pull/3212/head
winlin 2 years ago
parent 21b9345387
commit d9cf874033

2
trunk/configure vendored

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

@ -726,6 +726,8 @@ SrsSslConnection::~SrsSslConnection()
}
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
srs_error_t SrsSslConnection::handshake(string key_file, string crt_file)
{
srs_error_t err = srs_success;
@ -867,6 +869,7 @@ srs_error_t SrsSslConnection::handshake(string key_file, string crt_file)
return err;
}
#pragma GCC diagnostic pop
void SrsSslConnection::set_recv_timeout(srs_utime_t tm)
{

@ -114,6 +114,8 @@ void ssl_on_info(const SSL* dtls, int where, int ret)
}
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role)
{
SSL_CTX* dtls_ctx;
@ -188,6 +190,7 @@ SSL_CTX* srs_build_dtls_ctx(SrsDtlsVersion version, std::string role)
return dtls_ctx;
}
#pragma GCC diagnostic pop
SrsDtlsCertificate::SrsDtlsCertificate()
{

@ -54,6 +54,8 @@ SrsSslClient::~SrsSslClient()
}
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
srs_error_t SrsSslClient::handshake()
{
srs_error_t err = srs_success;
@ -171,6 +173,7 @@ srs_error_t SrsSslClient::handshake()
return err;
}
#pragma GCC diagnostic pop
srs_error_t SrsSslClient::read(void* plaintext, size_t nn_plaintext, ssize_t* nread)
{

Loading…
Cancel
Save