VirtualBox

Opened 8 years ago

Closed 8 years ago

#15524 closed defect (invalid)

vbox/src/VBox/RDP/client-1.8.3/parallel.c: missing break in switch ?

Reported by: dcb Owned by:
Component: other Version: VirtualBox 5.0.22
Keywords: Cc:
Guest type: other Host type: other

Description

[vbox/src/VBox/RDP/client-1.8.3/parallel.c:149] -> [vbox/src/VBox/RDP/client-1.8.3/parallel.c:151]: (warning) Variable 'rc' is reassigned a value before the old one has been used. 'break;' missing? [vbox/src/VBox/RDP/client-1.8.3/parallel.c:151] -> [vbox/src/VBox/RDP/client-1.8.3/parallel.c:153]: (warning) Variable 'rc' is reassigned a value before the old one has been used. 'break;' missing? [vbox/src/VBox/RDP/client-1.8.3/parallel.c:153] -> [vbox/src/VBox/RDP/client-1.8.3/parallel.c:155]: (warning) Variable 'rc' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

switch (errno) {

case EAGAIN:

rc = RD_STATUS_DEVICE_OFF_LINE;

case ENOSPC:

rc = RD_STATUS_DEVICE_PAPER_EMPTY;

case EIO:

rc = RD_STATUS_DEVICE_OFF_LINE;

default:

rc = RD_STATUS_DEVICE_POWERED_OFF;

}

Change History (1)

comment:1 by Frank Mehnert, 8 years ago

Resolution: invalid
Status: newclosed

Please stop SPAMMING this bugtracker!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use