mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
refactor: use maybe unused attribute (#1918)
* refactor: replace TR_UNUSED with [[maybe_unused]]
This commit is contained in:
@@ -72,10 +72,8 @@ static void send_signal_to_pipe(int sig)
|
||||
errno = old_errno;
|
||||
}
|
||||
|
||||
static void* signal_handler_thread_main(void* arg)
|
||||
static void* signal_handler_thread_main([[maybe_unused]] void* arg)
|
||||
{
|
||||
TR_UNUSED(arg);
|
||||
|
||||
int sig;
|
||||
|
||||
while (read(signal_pipe[0], &sig, sizeof(sig)) == sizeof(sig) && sig != 0)
|
||||
|
||||
Reference in New Issue
Block a user