From 4c8a4de3a711dc3ceee3a7f18465ce8d19f8afcc Mon Sep 17 00:00:00 2001 From: Heikki Tampio Date: Mon, 26 Jun 2023 08:57:41 +0300 Subject: [PATCH] multiplex: Fix compiler warnings --- src/formats/h26x.cc | 3 +++ src/zrtp/commit.cc | 2 ++ src/zrtp/confirm.cc | 2 ++ src/zrtp/dh_kxchng.cc | 2 ++ src/zrtp/hello.cc | 2 ++ 5 files changed, 11 insertions(+) diff --git a/src/formats/h26x.cc b/src/formats/h26x.cc index e83ff7f..793d322 100644 --- a/src/formats/h26x.cc +++ b/src/formats/h26x.cc @@ -635,6 +635,9 @@ bool uvgrtp::formats::h26x::is_duplicate_frame(uint32_t timestamp, uint16_t seq_ } rtp_error_t uvgrtp::formats::h26x::new_packet_handler(void* args, int rce_flags, uint8_t* read_ptr, size_t size, uvgrtp::frame::rtp_frame** out) { + (void)args; + (void)read_ptr; + (void)size; return packet_handler(rce_flags, out); } diff --git a/src/zrtp/commit.cc b/src/zrtp/commit.cc index b12260f..e9edc9c 100644 --- a/src/zrtp/commit.cc +++ b/src/zrtp/commit.cc @@ -100,5 +100,7 @@ rtp_error_t uvgrtp::zrtp_msg::commit::parse_msg(uvgrtp::zrtp_msg::zrtp_commit* c rtp_error_t uvgrtp::zrtp_msg::commit::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session) { + (void)receiver; + (void)session; return RTP_OK; } diff --git a/src/zrtp/confirm.cc b/src/zrtp/confirm.cc index e2cf7da..6d4c002 100644 --- a/src/zrtp/confirm.cc +++ b/src/zrtp/confirm.cc @@ -74,6 +74,8 @@ uvgrtp::zrtp_msg::confirm::~confirm() rtp_error_t uvgrtp::zrtp_msg::confirm::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session) { + (void)receiver; + (void)session; return RTP_OK; } diff --git a/src/zrtp/dh_kxchng.cc b/src/zrtp/dh_kxchng.cc index 55bbaf2..0b153e4 100644 --- a/src/zrtp/dh_kxchng.cc +++ b/src/zrtp/dh_kxchng.cc @@ -131,5 +131,7 @@ rtp_error_t uvgrtp::zrtp_msg::dh_key_exchange::parse_msg(uvgrtp::zrtp_msg::zrtp_ rtp_error_t uvgrtp::zrtp_msg::dh_key_exchange::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session) { + (void)receiver; + (void)session; return RTP_OK; } diff --git a/src/zrtp/hello.cc b/src/zrtp/hello.cc index 4616d66..b9ef282 100644 --- a/src/zrtp/hello.cc +++ b/src/zrtp/hello.cc @@ -117,5 +117,7 @@ rtp_error_t uvgrtp::zrtp_msg::hello::parse_msg(uvgrtp::zrtp_msg::zrtp_hello* hel rtp_error_t uvgrtp::zrtp_msg::hello::parse_msg(uvgrtp::zrtp_msg::receiver& receiver, zrtp_session_t& session) { + (void)receiver; + (void)session; return RTP_OK; }