NetBSD Problem Report #50516

From www@NetBSD.org  Thu Dec 10 22:11:59 2015
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 39348A6554
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Dec 2015 22:11:59 +0000 (UTC)
Message-Id: <20151210221158.614BBA667B@mollari.NetBSD.org>
Date: Thu, 10 Dec 2015 22:11:58 +0000 (UTC)
From: dcb314@hotmail.com
Reply-To: dcb314@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: src/sys/arch/sparc/sparc/trap.c:1255: bad switch case ?
X-Send-Pr-Version: www-1.0

>Number:         50516
>Category:       port-sparc
>Synopsis:       src/sys/arch/sparc/sparc/trap.c:1255: bad switch case ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 10 22:15:00 +0000 2015
>Closed-Date:    Sun Dec 13 20:26:32 +0000 2015
>Last-Modified:  Sun Dec 13 20:26:32 +0000 2015
>Originator:     David Binderman
>Release:        cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/sys/arch/sparc/sparc/trap.c:1255] -> [src/sys/arch/sparc/sparc/trap.c:1258]: (warning) Variable 'ksi_signo' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

        case EINVAL:
            ksi.ksi_signo = SIGBUS;
            ksi.ksi_code = BUS_ADRERR;
        case EACCES:
            ksi.ksi_signo = SIGSEGV;
            ksi.ksi_code = SEGV_ACCERR;
        default:

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Michael <macallan@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc/50516: src/sys/arch/sparc/sparc/trap.c:1255: bad
 switch case ?
Date: Thu, 10 Dec 2015 22:19:04 -0500

 Yeah, that looks exactly like a bunch of missing break;s

From: "Michael van Elst" <mlelstv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50516 CVS commit: src/sys/arch/sparc/sparc
Date: Fri, 11 Dec 2015 08:08:01 +0000

 Module Name:	src
 Committed By:	mlelstv
 Date:		Fri Dec 11 08:08:01 UTC 2015

 Modified Files:
 	src/sys/arch/sparc/sparc: trap.c

 Log Message:
 PR 50516 bad switch case


 To generate a diff of this commit:
 cvs rdiff -u -r1.193 -r1.194 src/sys/arch/sparc/sparc/trap.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50516 CVS commit: src/sys/arch/sparc/sparc
Date: Sun, 13 Dec 2015 14:49:34 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Sun Dec 13 19:49:34 UTC 2015

 Modified Files:
 	src/sys/arch/sparc/sparc: trap.c

 Log Message:
 PR/50516: David Binderman: Add missing breaks


 To generate a diff of this commit:
 cvs rdiff -u -r1.194 -r1.195 src/sys/arch/sparc/sparc/trap.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: wiz@NetBSD.org
State-Changed-When: Sun, 13 Dec 2015 20:26:32 +0000
State-Changed-Why:
two people fixed it (?!)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.