NetBSD-Bugs archive

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

port-sun3/50517: src/sys/compat/sunos32/sunos32_ioctl.c:849: bad switch ?



>Number:         50517
>Category:       port-sun3
>Synopsis:       src/sys/compat/sunos32/sunos32_ioctl.c:849: bad switch ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sun3-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/sunos32/sunos32_ioctl.c:849] -> [src/sys/compat/sunos32/sunos32_ioctl.c:850]: (warning) Variable 'tmp' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

        switch ((intptr_t)SCARG_P32(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