Skip to content

Commit

Permalink
[tests] GCC unused warning supressed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Feb 12, 2019
1 parent 79e6153 commit 7da43a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test_strict_encription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
#include "srt.h"


#ifdef __GNUC__
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
#else
# define UNUSED(x) UNUSED_ ## x
#endif


enum PEER_TYPE
{
PEER_CALLER = 0,
Expand Down Expand Up @@ -428,8 +435,9 @@ class TestStrictEncryption
};



template<>
int TestStrictEncryption::WaitOnEpoll<TestResultBlocking>(const TestResultBlocking &expect)
int TestStrictEncryption::WaitOnEpoll<TestResultBlocking>(const TestResultBlocking & UNUSED(expect))
{
return SRT_SUCCESS;
}
Expand Down

0 comments on commit 7da43a9

Please sign in to comment.