NetBSD-Bugs archive

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

port-sparc/50518: src/sys/compat/sunos/sunos_ioctl.c:820: another bad switch ?



>Number:         50518
>Category:       port-sparc
>Synopsis:       src/sys/compat/sunos/sunos_ioctl.c:820: another bad switch ?
>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:20:00 +0000 2015
>Originator:     David Binderman
>Release:        cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/sys/compat/sunos/sunos_ioctl.c:820] -> [src/sys/compat/sunos/sunos_ioctl.c:821]: (warning) Variable 'tmp' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

        switch ((int)(u_long)SCARG(uap, data)) {
        case SUNOS_S_FLUSHR:    tmp = FREAD;
        case SUNOS_S_FLUSHW:    tmp = FWRITE;
        case SUNOS_S_FLUSHRW:   tmp = FREAD|FWRITE;
        }


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index