mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
refactor: use maybe unused attribute (#1918)
* refactor: replace TR_UNUSED with [[maybe_unused]]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user