NetBSD-Bugs archive

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

Re: bin/51848: [PATCH] tests/lib/libc/sys/t_sigaction: mark variables __unused and change h_macros.h #include



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

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51848: [PATCH] tests/lib/libc/sys/t_sigaction: mark variables
 __unused and change h_macros.h #include
Date: Thu, 12 Jan 2017 21:46:17 -0800

 --Apple-Mail=_FF174221-D0C4-4F10-9297-DBC2144CEE36
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 -Ngie
 
 --Apple-Mail=_FF174221-D0C4-4F10-9297-DBC2144CEE36
 Content-Disposition: attachment;
 	filename=t_sigaction-mark-__unused-and-change-h_macros.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_sigaction-mark-__unused-and-change-h_macros.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: lib/libc/sys/t_sigaction.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/t_sigaction.c,v
 retrieving revision 1.3
 diff -u -r1.3 t_sigaction.c
 --- lib/libc/sys/t_sigaction.c	4 Nov 2014 00:20:19 -0000	1.3
 +++ lib/libc/sys/t_sigaction.c	13 Jan 2017 05:43:08 -0000
 @@ -41,12 +41,12 @@
  
  #include <atf-c.h>
  
 -#include "../../../h_macros.h"
 +#include "h_macros.h"
  
  static bool handler_called = false;
  
  static void
 -handler(int signo)
 +handler(int signo __unused)
  {
      handler_called = true;
  }
 @@ -79,7 +79,7 @@
  }
  
  static void
 -catch(int sig)
 +catch(int sig __unused)
  {
  	return;
  }
 Index: lib/libc/sys/Makefile
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/Makefile,v
 retrieving revision 1.45
 diff -u -r1.45 Makefile
 --- lib/libc/sys/Makefile	11 Nov 2016 15:30:44 -0000	1.45
 +++ lib/libc/sys/Makefile	13 Jan 2017 05:43:08 -0000
 @@ -83,6 +83,7 @@
  .endif
  
  CPPFLAGS.t_lwp_create.c += -D_KERNTYPES
 +CPPFLAGS.t_sigaction.c+=	-I${.CURDIR:H:H:H}
  
  WARNS=			4
  
 
 --Apple-Mail=_FF174221-D0C4-4F10-9297-DBC2144CEE36--
 


Home | Main Index | Thread Index | Old Index