target/ppc: Rewrite a fall through comment
commitb1d5b6e507c168a939b753be52f518d2981a2b51
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 19 Jul 2019 13:14:23 +0000 (19 15:14 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 21 Aug 2019 08:57:28 +0000 (21 10:57 +0200)
treef82f09560eedb2f71af3c37741e735a7536714f6
parent5a70b8b550a8e236fd7f696c803fc05c4cae2a54
target/ppc: Rewrite a fall through comment

GCC9 is confused by this comment when building with CFLAG
-Wimplicit-fallthrough=2:

  target/ppc/mmu_helper.c: In function ‘dump_mmu’:
  target/ppc/mmu_helper.c:1349:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
   1349 |         if (ppc64_v3_radix(env_archcpu(env))) {
        |            ^
  target/ppc/mmu_helper.c:1356:5: note: here
   1356 |     default:
        |     ^~~~~~~
  cc1: all warnings being treated as errors

Rewrite the comment using 'fall through' which is recognized by
GCC and static analyzers.

Reported-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20190719131425.10835-6-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/ppc/mmu_helper.c