refactor: use maybe unused attribute (#1918)

* refactor: replace TR_UNUSED with [[maybe_unused]]
This commit is contained in:
Charles Kerr
2021-10-10 11:52:26 -05:00
committed by GitHub
parent a4d7e11a14
commit 1fb5a79813
47 changed files with 255 additions and 585 deletions
+1 -3
View File
@@ -83,10 +83,8 @@ static bool check_polarssl_result(int result, int expected_result, char const* f
****
***/
static int my_rand(void* context, unsigned char* buffer, size_t buffer_size)
static int my_rand([[maybe_unused]] void* context, unsigned char* buffer, size_t buffer_size)
{
TR_UNUSED(context);
for (size_t i = 0; i < buffer_size; ++i)
{
buffer[i] = tr_rand_int_weak(256);