bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH 1/8] Mark unused paramter in utils.c


From: Darshit Shah
Subject: [Bug-wget] [PATCH 1/8] Mark unused paramter in utils.c
Date: Sat, 22 Nov 2014 14:52:15 +0530

---
 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  <address@hidden>
+
+       * 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  <address@hidden>
 
        * 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]