Add comments to intentional switch fallthroughs
Clarify Coverity "Missing break in switch" messages. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
40668dcc7c
commit
5d09711b1d
@ -617,6 +617,7 @@ fhandler_pty_slave::write (const void *ptr, size_t len)
|
|||||||
{
|
{
|
||||||
case ERROR_NO_DATA:
|
case ERROR_NO_DATA:
|
||||||
err = ERROR_IO_DEVICE;
|
err = ERROR_IO_DEVICE;
|
||||||
|
/*FALLTHRU*/
|
||||||
default:
|
default:
|
||||||
__seterrno_from_win_error (err);
|
__seterrno_from_win_error (err);
|
||||||
}
|
}
|
||||||
|
@ -1357,8 +1357,10 @@ wait_sig (VOID *)
|
|||||||
sig_clear (-pack.si.si_signo);
|
sig_clear (-pack.si.si_signo);
|
||||||
else
|
else
|
||||||
sigq.add (pack);
|
sigq.add (pack);
|
||||||
|
/*FALLTHRU*/
|
||||||
case __SIGNOHOLD:
|
case __SIGNOHOLD:
|
||||||
sig_held = false;
|
sig_held = false;
|
||||||
|
/*FALLTHRU*/
|
||||||
case __SIGFLUSH:
|
case __SIGFLUSH:
|
||||||
case __SIGFLUSHFAST:
|
case __SIGFLUSHFAST:
|
||||||
if (!sig_held)
|
if (!sig_held)
|
||||||
|
@ -169,6 +169,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap)
|
|||||||
pad = '0';
|
pad = '0';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/*FALLTHRU*/
|
||||||
case '1': case '2': case '3': case '4':
|
case '1': case '2': case '3': case '4':
|
||||||
case '5': case '6': case '7': case '8': case '9':
|
case '5': case '6': case '7': case '8': case '9':
|
||||||
len = len * 10 + (c - '0');
|
len = len * 10 + (c - '0');
|
||||||
@ -284,6 +285,7 @@ gen_decimalLL:
|
|||||||
n = strtol (fmt, (char **) &fmt, 10);
|
n = strtol (fmt, (char **) &fmt, 10);
|
||||||
if (*fmt++ != 's')
|
if (*fmt++ != 's')
|
||||||
goto endfor;
|
goto endfor;
|
||||||
|
/*FALLTHRU*/
|
||||||
case 's':
|
case 's':
|
||||||
s = va_arg (ap, char *);
|
s = va_arg (ap, char *);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
@ -511,6 +513,7 @@ __small_vswprintf (PWCHAR dst, const WCHAR *fmt, va_list ap)
|
|||||||
pad = L'0';
|
pad = L'0';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/*FALLTHRU*/
|
||||||
case L'1' ... L'9':
|
case L'1' ... L'9':
|
||||||
len = len * 10 + (c - L'0');
|
len = len * 10 + (c - L'0');
|
||||||
continue;
|
continue;
|
||||||
@ -612,6 +615,7 @@ gen_decimalLL:
|
|||||||
n = wcstoul (fmt, (wchar_t **) &fmt, 10);
|
n = wcstoul (fmt, (wchar_t **) &fmt, 10);
|
||||||
if (*fmt++ != L's')
|
if (*fmt++ != L's')
|
||||||
goto endfor;
|
goto endfor;
|
||||||
|
/*FALLTHRU*/
|
||||||
case L's':
|
case L's':
|
||||||
s = va_arg (ap, char *);
|
s = va_arg (ap, char *);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user