mirror of
https://github.com/transmission/transmission.git
synced 2026-04-27 12:15:13 +01:00
refactor: only use [[maybe_unused]] if arg might be used (#2033)
* refactor: [[maybe_unused]] iff arg _might_ be used If the arg is never used, comment out its name. If the arg is _sometimes_ used e.g. with ifdefs, use [[maybe_unused]].
This commit is contained in:
@@ -83,7 +83,7 @@ static bool check_polarssl_result(int result, int expected_result, char const* f
|
||||
****
|
||||
***/
|
||||
|
||||
static int my_rand([[maybe_unused]] void* context, unsigned char* buffer, size_t buffer_size)
|
||||
static int my_rand(void* /*context*/, unsigned char* buffer, size_t buffer_size)
|
||||
{
|
||||
for (size_t i = 0; i < buffer_size; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user