summary refs log tree commit diff stats
path: root/scripts/qapi/expr.py
diff options
context:
space:
mode:
authorChen Qun <kuhn.chenqun@huawei.com>2020-11-16 10:48:09 +0800
committerDavid Gibson <david@gibson.dropbear.id.au>2020-12-14 15:50:55 +1100
commitb2bd5b20fd1854cdbfee87553855163081a6c531 (patch)
treece87dee11b766a7cdd5c77932980b1976aed06dd /scripts/qapi/expr.py
parentcf77e27f1e16d8eca761e5c966ea80291254a32c (diff)
downloadfocaccia-qemu-b2bd5b20fd1854cdbfee87553855163081a6c531.tar.gz
focaccia-qemu-b2bd5b20fd1854cdbfee87553855163081a6c531.zip
ppc: Add a missing break for PPC6xx_INPUT_TBEN
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
hw/ppc/ppc.c: In function ‘ppc6xx_set_irq’:
hw/ppc/ppc.c:118:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  118 |             if (level) {
      |                ^
hw/ppc/ppc.c:123:9: note: here
  123 |         case PPC6xx_INPUT_INT:
      |         ^~~~

According to the discussion, a break statement needs to be added here.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20201116024810.2415819-7-kuhn.chenqun@huawei.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions