NetBSD-Bugs archive

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

Re: bin/51874: [PATCH] tests/lib/setjmp/t_{set,thread}jmp: add __unused to signo in signal handlers



The following reply was made to PR bin/51874; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51874: [PATCH] tests/lib/setjmp/t_{set,thread}jmp: add
 __unused to signo in signal handlers
Date: Sat, 14 Jan 2017 00:33:44 -0800

 --Apple-Mail=_14E9A594-E223-4FA8-9EE5-C117C60E1580
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 -Ngie
 
 --Apple-Mail=_14E9A594-E223-4FA8-9EE5-C117C60E1580
 Content-Disposition: attachment;
 	filename=setjmp-sprinkle-__unused-on-signo.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="setjmp-sprinkle-__unused-on-signo.patch"
 Content-Transfer-Encoding: 7bit
 
 ? lib/libc/setjmp/obj
 Index: lib/libc/setjmp/t_setjmp.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/setjmp/t_setjmp.c,v
 retrieving revision 1.1
 diff -u -r1.1 t_setjmp.c
 --- lib/libc/setjmp/t_setjmp.c	27 Dec 2010 19:35:31 -0000	1.1
 +++ lib/libc/setjmp/t_setjmp.c	14 Jan 2017 08:17:16 -0000
 @@ -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();
 Index: lib/libc/setjmp/t_threadjmp.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/setjmp/t_threadjmp.c,v
 retrieving revision 1.1
 diff -u -r1.1 t_threadjmp.c
 --- lib/libc/setjmp/t_threadjmp.c	21 Apr 2011 18:58:20 -0000	1.1
 +++ lib/libc/setjmp/t_threadjmp.c	14 Jan 2017 08:17:16 -0000
 @@ -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");
 
 --Apple-Mail=_14E9A594-E223-4FA8-9EE5-C117C60E1580--
 


Home | Main Index | Thread Index | Old Index