Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/setjmp PR/51874: Ngie Cooper: Add __unused to...



details:   https://anonhg.NetBSD.org/src/rev/6f2514f53643
branches:  trunk
changeset: 820772:6f2514f53643
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 14 21:08:17 2017 +0000

description:
PR/51874: Ngie Cooper: Add __unused to signal handlers

diffstat:

 tests/lib/libc/setjmp/t_setjmp.c    |  6 +++---
 tests/lib/libc/setjmp/t_threadjmp.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r fee317027f70 -r 6f2514f53643 tests/lib/libc/setjmp/t_setjmp.c
--- a/tests/lib/libc/setjmp/t_setjmp.c  Sat Jan 14 20:59:23 2017 +0000
+++ b/tests/lib/libc/setjmp/t_setjmp.c  Sat Jan 14 21:08:17 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setjmp.c,v 1.1 2010/12/27 19:35:31 pgoyette Exp $ */
+/* $NetBSD: t_setjmp.c,v 1.2 2017/01/14 21:08:17 christos Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_setjmp.c,v 1.1 2010/12/27 19:35:31 pgoyette Exp $");
+__RCSID("$NetBSD: t_setjmp.c,v 1.2 2017/01/14 21:08:17 christos Exp $");
 
 #include <sys/types.h>
 
@@ -87,7 +87,7 @@
 static int expectsignal;
 
 static void
-aborthandler(int signo)
+aborthandler(int signo __unused)
 {
        ATF_REQUIRE_MSG(expectsignal, "kill(SIGABRT) succeeded");
        atf_tc_pass();
diff -r fee317027f70 -r 6f2514f53643 tests/lib/libc/setjmp/t_threadjmp.c
--- a/tests/lib/libc/setjmp/t_threadjmp.c       Sat Jan 14 20:59:23 2017 +0000
+++ b/tests/lib/libc/setjmp/t_threadjmp.c       Sat Jan 14 21:08:17 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_threadjmp.c,v 1.1 2011/04/21 18:58:20 martin Exp $ */
+/* $NetBSD: t_threadjmp.c,v 1.2 2017/01/14 21:08:17 christos Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_threadjmp.c,v 1.1 2011/04/21 18:58:20 martin Exp $");
+__RCSID("$NetBSD: t_threadjmp.c,v 1.2 2017/01/14 21:08:17 christos Exp $");
 
 #include <sys/types.h>
 
@@ -91,7 +91,7 @@
 static int expectsignal;
 
 static void
-aborthandler(int signo)
+aborthandler(int signo __unused)
 {
        ATF_REQUIRE(myself == pthread_self());
        ATF_REQUIRE_MSG(expectsignal, "kill(SIGABRT) succeeded");



Home | Main Index | Thread Index | Old Index