A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/0fca8741ce319066c1abe62757e1fa7edeeb9d58 below:

unused parameter · Haivision/srt@0fca874 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-4

lines changed Original file line number Diff line number Diff line change

@@ -349,7 +349,7 @@ bool CheckInvalidValues(const OptionTestEntry& entry, SRTSOCKET sock, const char

349 349

{

350 350

try {

351 351

const ValueType val = linb::any_cast<ValueType>(inval);

352 -

CheckSetSockOpt<ValueType>(entry, sock, val, SRT_ERROR, "[Caller, invalid val]");

352 +

CheckSetSockOpt<ValueType>(entry, sock, val, SRT_ERROR, sock_name);

353 353

}

354 354

catch (const linb::bad_any_cast&)

355 355

{

@@ -454,17 +454,18 @@ TEST_F(TestSocketOptions, InvalidVals)

454 454

// Note: Changing SRTO_FC changes SRTO_RCVBUF limitation

455 455

for (const auto& entry : g_test_matrix_options)

456 456

{

457 +

const char* desc = "[Caller, invalid val]";

457 458

if (entry.dflt_val.type() == typeid(bool))

458 459

{

459 -

EXPECT_TRUE(CheckInvalidValues<bool>(entry, m_caller_sock, "[Caller, invalid val]"));

460 +

EXPECT_TRUE(CheckInvalidValues<bool>(entry, m_caller_sock, desc));

460 461

}

461 462

else if (entry.dflt_val.type() == typeid(int))

462 463

{

463 -

EXPECT_TRUE(CheckInvalidValues<int>(entry, m_caller_sock, "[Caller, invalid val]"));

464 +

EXPECT_TRUE(CheckInvalidValues<int>(entry, m_caller_sock, desc));

464 465

}

465 466

else if (entry.dflt_val.type() == typeid(int64_t))

466 467

{

467 -

EXPECT_TRUE(CheckInvalidValues<int64_t>(entry, m_caller_sock, "[Caller, invalid val]"));

468 +

EXPECT_TRUE(CheckInvalidValues<int64_t>(entry, m_caller_sock, desc));

468 469

}

469 470

else

470 471

{

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4