Source

Target

Showing with 1 addition and 11 deletions
...@@ -590,7 +590,7 @@ else() ...@@ -590,7 +590,7 @@ else()
list(APPEND STRICT_OPTIONS_CPP "-Wno-format-truncation") list(APPEND STRICT_OPTIONS_CPP "-Wno-format-truncation")
endif() endif()
if(${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "8") if(${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "8")
list(APPEND STRICT_OPTIONS_CPP "-Wno-error=stringop-truncation") list(APPEND STRICT_OPTIONS_CPP "-Wno-error=stringop-truncation" "-Wno-cast-function-type")
endif() endif()
endif() endif()
if(APPLE) if(APPLE)
......
...@@ -146,19 +146,9 @@ RtpSession * ms_create_duplex_rtp_session(const char* local_ip, int loc_rtp_port ...@@ -146,19 +146,9 @@ RtpSession * ms_create_duplex_rtp_session(const char* local_ip, int loc_rtp_port
} }
} }
/* FIXME: Temporary workaround for -Wcast-function-type. */
#if __GNUC__ >= 8
_Pragma("GCC diagnostic push")
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
#endif // if __GNUC__ >= 8
rtp_session_signal_connect(rtpr, "timestamp_jump", (RtpCallback)rtp_session_resync, NULL); rtp_session_signal_connect(rtpr, "timestamp_jump", (RtpCallback)rtp_session_resync, NULL);
rtp_session_signal_connect(rtpr, "ssrc_changed", (RtpCallback)rtp_session_resync, NULL); rtp_session_signal_connect(rtpr, "ssrc_changed", (RtpCallback)rtp_session_resync, NULL);
#if __GNUC__ >= 8
_Pragma("GCC diagnostic pop")
#endif // if __GNUC__ >= 8
rtp_session_set_ssrc_changed_threshold(rtpr, 0); rtp_session_set_ssrc_changed_threshold(rtpr, 0);
rtp_session_set_rtcp_report_interval(rtpr, 2500); /* At the beginning of the session send more reports. */ rtp_session_set_rtcp_report_interval(rtpr, 2500); /* At the beginning of the session send more reports. */
rtp_session_set_multicast_loopback(rtpr,TRUE); /*very useful, specially for testing purposes*/ rtp_session_set_multicast_loopback(rtpr,TRUE); /*very useful, specially for testing purposes*/
......