From b41a3a6568b2b3aaf9c585cccb7e515c994d311b Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Sat, 22 Nov 2014 11:12:09 +0530 Subject: [PATCH] Mark unused paramter in utils.c --- src/ChangeLog | 7 +++++++ src/utils.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 120e82e1..d49e6caf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2014-11-22 Darshit Shah + + * utils.c (abort_run_with_timeout): The sig parameter is not used. Mark it + as such. + (abort_run_with_timeout): One implementation of this function did not + specify _Noreturn. Add it. + 2014-11-21 Daniel Stenberg * iri.c (remote_to_utf8): Fix compiler warning diff --git a/src/utils.c b/src/utils.c index 618c12e2..ce8ca264 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1916,7 +1916,7 @@ random_float (void) static sigjmp_buf run_with_timeout_env; static void _Noreturn -abort_run_with_timeout (int sig) +abort_run_with_timeout (int sig _GL_UNUSED) { assert (sig == SIGALRM); siglongjmp (run_with_timeout_env, -1); @@ -1926,8 +1926,8 @@ abort_run_with_timeout (int sig) static jmp_buf run_with_timeout_env; -static void -abort_run_with_timeout (int sig) +static void _Noreturn +abort_run_with_timeout (int sig _GL_UNUSED) { assert (sig == SIGALRM); /* We don't have siglongjmp to preserve the set of blocked signals;