mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Add 'fall through' comments to case statements without break
These comments are used by static code analysis tools and in code reviews to avoid false warnings because of missing break statements. The case statements handled here were reported by coverity. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
3c8359d11a
commit
0b0404bf84
3 changed files with 6 additions and 0 deletions
|
@ -214,13 +214,17 @@ static int parse_option_size(const char *name, const char *value, uint64_t *ret)
|
|||
switch (*postfix) {
|
||||
case 'T':
|
||||
sizef *= 1024;
|
||||
/* fall through */
|
||||
case 'G':
|
||||
sizef *= 1024;
|
||||
/* fall through */
|
||||
case 'M':
|
||||
sizef *= 1024;
|
||||
/* fall through */
|
||||
case 'K':
|
||||
case 'k':
|
||||
sizef *= 1024;
|
||||
/* fall through */
|
||||
case 'b':
|
||||
case '\0':
|
||||
*ret = (uint64_t) sizef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue