mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +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:
+4
-4
@@ -138,10 +138,10 @@ static char* tr_strlratio(char* buf, double ratio, size_t buflen)
|
||||
static bool waitingOnWeb;
|
||||
|
||||
static void onTorrentFileDownloaded(
|
||||
[[maybe_unused]] tr_session* session,
|
||||
[[maybe_unused]] bool did_connect,
|
||||
[[maybe_unused]] bool did_timeout,
|
||||
[[maybe_unused]] long response_code,
|
||||
tr_session* /*session*/,
|
||||
bool /*did_connect*/,
|
||||
bool /*did_timeout*/,
|
||||
long /*response_code*/,
|
||||
void const* response,
|
||||
size_t response_byte_count,
|
||||
void* vctor)
|
||||
|
||||
Reference in New Issue
Block a user