NetBSD-Bugs archive

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

standards/50519: src/sys/compat/svr4_32/svr4_32_termios.c:204: possible missing break in switch ?



>Number:         50519
>Category:       standards
>Synopsis:       src/sys/compat/svr4_32/svr4_32_termios.c:204: possible missing break in switch ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 10 22:30:00 +0000 2015
>Originator:     David Binderman
>Release:        cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/sys/compat/svr4_32/svr4_32_termios.c:204] -> [src/sys/compat/svr4_32/svr4_32_termios.c:205]: (warning) Variable 'sp' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

   getval(B,115200);
    default: sp = SVR4_B9600;   /* XXX */
    }

The getval macro doesn't seem to mention a break.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index