NetBSD Problem Report #51892
From www@NetBSD.org Sun Jan 15 21:23:51 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id D63427A28E
for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Jan 2017 21:23:51 +0000 (UTC)
Message-Id: <20170115212345.DA2847A2A1@mollari.NetBSD.org>
Date: Sun, 15 Jan 2017 21:23:45 +0000 (UTC)
From: yaneurabeya@gmail.com
Reply-To: yaneurabeya@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [PATCH] tests/lib/libc/sys/t_timer_create: add __unused to `osi` in the sigaction handler
X-Send-Pr-Version: www-1.0
>Number: 51892
>Category: bin
>Synopsis: [PATCH] tests/lib/libc/sys/t_timer_create: add __unused to `osi` in the sigaction handler
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 15 21:25:02 +0000 2017
>Closed-Date: Mon Jan 16 18:44:29 +0000 2017
>Last-Modified: Mon Jan 16 18:44:29 +0000 2017
>Originator: Ngie Cooper
>Release: 7.0.2
>Organization:
>Environment:
n/a
>Description:
The attached patch adds __unused to `osi` in the sigaction handler to resolve a -Wunused warning.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/51892: [PATCH] tests/lib/libc/sys/t_timer_create: add
__unused to `osi` in the sigaction handler
Date: Sun, 15 Jan 2017 13:26:04 -0800
--Apple-Mail=_834176DD-048F-4F68-93D3-EA0E9D34667D
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
Patch attached.
-Ngie
--Apple-Mail=_834176DD-048F-4F68-93D3-EA0E9D34667D
Content-Disposition: attachment;
filename=t_timer_create-mark-osi-__unused.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="t_timer_create-mark-osi-__unused.patch"
Content-Transfer-Encoding: 7bit
Index: lib/libc/sys/t_timer_create.c
===================================================================
RCS file: /cvsroot/src/tests/lib/libc/sys/t_timer_create.c,v
retrieving revision 1.4
diff -u -r1.4 t_timer_create.c
--- lib/libc/sys/t_timer_create.c 18 Mar 2012 07:00:52 -0000 1.4
+++ lib/libc/sys/t_timer_create.c 15 Jan 2017 21:22:14 -0000
@@ -38,7 +38,7 @@
static bool fail = true;
static void
-timer_signal_handler(int signo, siginfo_t *si, void *osi)
+timer_signal_handler(int signo, siginfo_t *si, void *osi __unused)
{
timer_t *tp;
--Apple-Mail=_834176DD-048F-4F68-93D3-EA0E9D34667D--
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51892 CVS commit: src/tests/lib/libc/sys
Date: Mon, 16 Jan 2017 11:32:13 -0500
Module Name: src
Committed By: christos
Date: Mon Jan 16 16:32:13 UTC 2017
Modified Files:
src/tests/lib/libc/sys: t_timer_create.c
Log Message:
PR/51892: Ngie Cooper: add __unused to `osi` in the sigaction handler
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_timer_create.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 16 Jan 2017 18:44:29 +0000
State-Changed-Why:
christos committed it. thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.