Skip to content

Commit

Permalink
[apps] Fixed compiler warnings (G++ 9.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 23, 2024
1 parent 307ff04 commit 9c7206f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion testing/srt-test-mpbond.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ int main( int argc, char** argv )
return 1;
}

auto s = new SrtSource;
unique_ptr<Source> src;
unique_ptr<Target> tar;

Expand All @@ -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);
}
Expand Down
12 changes: 6 additions & 6 deletions testing/testmedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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() << "";

Expand Down

0 comments on commit 9c7206f

Please sign in to comment.