NetBSD-Bugs archive

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

port-sparc/50516: src/sys/arch/sparc/sparc/trap.c:1255: bad switch case ?



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 10 22:15:00 +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:



Home | Main Index | Thread Index | Old Index