[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
- [Bug-wget] Fix various compiler warnings, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 2/8] Add extern declaration for version.c strings, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 1/8] Mark unused paramter in utils.c,
Darshit Shah <=
- [Bug-wget] [PATCH 3/8] Fix missing extern declaration error for build_info.pl, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 5/8] Make extern declaration for program_name, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 4/8] Declare extern numurls in common header, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 6/8] Add extern declaration for program_arsgstring, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 7/8] Remove defensive assert in cookies.c, Darshit Shah, 2014/11/22
- [Bug-wget] [PATCH 8/8] Supplement logical assumption assert with error message, Darshit Shah, 2014/11/22
- Re: [Bug-wget] Fix various compiler warnings, Tim Rühsen, 2014/11/22