From 9c7206f0190c0c800a5ee1e71ee61ec0d4c7e216 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Thu, 22 Aug 2024 18:14:31 +0200 Subject: [PATCH] [apps] Fixed compiler warnings (G++ 9.4) --- testing/srt-test-mpbond.cpp | 2 +- testing/testmedia.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/testing/srt-test-mpbond.cpp b/testing/srt-test-mpbond.cpp index bf9739675..60d91df2c 100644 --- a/testing/srt-test-mpbond.cpp +++ b/testing/srt-test-mpbond.cpp @@ -209,7 +209,6 @@ int main( int argc, char** argv ) return 1; } - auto s = new SrtSource; unique_ptr src; unique_ptr tar; @@ -222,6 +221,7 @@ int main( int argc, char** argv ) Verb() << "SRT -> " << outspec; tar = Target::Create(outspec); + auto s = new SrtSource; s->Acquire(conngrp); src.reset(s); } diff --git a/testing/testmedia.cpp b/testing/testmedia.cpp index d82212bad..b9d8a0413 100755 --- a/testing/testmedia.cpp +++ b/testing/testmedia.cpp @@ -1059,8 +1059,8 @@ void SrtCommon::OpenGroupClient() if (!extras.empty()) { Verb() << "?" << extras[0] << VerbNoEOL; - for (size_t i = 1; i < extras.size(); ++i) - Verb() << "&" << extras[i] << VerbNoEOL; + for (size_t ii = 1; ii < extras.size(); ++ii) + Verb() << "&" << extras[ii] << VerbNoEOL; } Verb(); @@ -1194,11 +1194,11 @@ void SrtCommon::OpenGroupClient() NULL, NULL) != -1) { Verb() << "[C]" << VerbNoEOL; - for (int i = 0; i < len1; ++i) - Verb() << " " << ready_conn[i] << VerbNoEOL; + for (int ii = 0; ii < len1; ++ii) + Verb() << " " << ready_conn[ii] << VerbNoEOL; Verb() << "[E]" << VerbNoEOL; - for (int i = 0; i < len2; ++i) - Verb() << " " << ready_err[i] << VerbNoEOL; + for (int ii = 0; ii < len2; ++ii) + Verb() << " " << ready_err[ii] << VerbNoEOL; Verb() << "";