--- src/ChangeLog | 7 +++++++ src/utils.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/ChangeLog b/src/ChangeLog index 120e82e..d49e6ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2014-11-22 Darshit Shah <[email protected]> + + * 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 <[email protected]> * iri.c (remote_to_utf8): Fix compiler warning diff --git a/src/utils.c b/src/utils.c index 618c12e..ce8ca26 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; -- 2.1.3
