Revisión | 124e4cfaa42bb5a14eec33ea47d3502b5f46eb33 (tree) |
---|---|
Tiempo | 2019-07-23 18:31:07 |
Autor | Philippe Mathieu-Daudé <philmd@redh...> |
Commiter | Philippe Mathieu-Daudé |
hw/block/pflash_cfi02: Rewrite a fall through comment
GCC9 is confused by this comment when building with CFLAG
-Wimplicit-fallthrough=2:
Rewrite the comment using 'fall through' which is recognized by
GCC and static analyzers.
Reported-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20190719131425.10835-4-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
@@ -577,7 +577,7 @@ static void pflash_write(void *opaque, hwaddr offset, uint64_t value, | ||
577 | 577 | pfl->cmd = 0x98; |
578 | 578 | return; |
579 | 579 | } |
580 | - /* No break here */ | |
580 | + /* fall through */ | |
581 | 581 | default: |
582 | 582 | DPRINTF("%s: invalid write for command %02x\n", |
583 | 583 | __func__, pfl->cmd); |