Commit e871d021 authored by François Grisez's avatar François Grisez

Fix build with latest revision of GCC by disabling 'cast-function-type' warning

(cherry picked from commit dbe78d5f)
parent 5c063786
......@@ -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*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment