From 9b1209db6818404af47031a810c0a992ea7db161 Mon Sep 17 00:00:00 2001 From: Phenom Date: Mon, 8 May 2017 12:14:04 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Warnings:=20unused=20parameter=20?= =?UTF-8?q?=E2=80=98s=E2=80=99=20&=20'n'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: unused parameter ā€˜sā€™ [-Wunused-parameter] template<> uint32_t RsTypeSerializer::serial_size(const PeerBandwidthLimits& s) ^ --- libretroshare/src/rsitems/rsconfigitems.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/rsitems/rsconfigitems.cc b/libretroshare/src/rsitems/rsconfigitems.cc index 15a8dd624..f6296bd04 100644 --- a/libretroshare/src/rsitems/rsconfigitems.cc +++ b/libretroshare/src/rsitems/rsconfigitems.cc @@ -192,7 +192,7 @@ void RsPeerStunItem::serial_process(RsGenericSerializer::SerializeJob j,RsGeneri RsTypeSerializer::serial_process(j,ctx,stunList,"stunList") ; } -template<> uint32_t RsTypeSerializer::serial_size(const PeerBandwidthLimits& s) +template<> uint32_t RsTypeSerializer::serial_size(const PeerBandwidthLimits& /*s*/) { return 4+4 ; } @@ -213,7 +213,7 @@ template<> bool RsTypeSerializer::deserialize(const uint8_t data[], uint32_t siz return ok; } -template<> void RsTypeSerializer::print_data(const std::string& n, const PeerBandwidthLimits& s) +template<> void RsTypeSerializer::print_data(const std::string& /*n*/, const PeerBandwidthLimits& s) { std::cerr << " [Peer BW limit] " << s.max_up_rate_kbs << " / " << s.max_dl_rate_kbs << std::endl; }