Source

Target

Showing with 1 addition and 11 deletions
......@@ -590,7 +590,7 @@ else()
list(APPEND STRICT_OPTIONS_CPP "-Wno-format-truncation")
endif()
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()
if(APPLE)
......
......@@ -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, "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_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*/
......