]> git.proxmox.com Git - qemu.git/commit
hw/omap_dma, hw/omap_spi: Explicitly mark fallthroughs
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2013 12:50:53 +0000 (12:50 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:20:44 +0000 (13:20 +0000)
commitbe688dfb8ddf7841fb277800977a0a878b68ae42
tree57aeede9a33ab6b94b5da7d1502f4229b05b76e0
parent139bd956eaf1675209009b22764a46bd220e287c
hw/omap_dma, hw/omap_spi: Explicitly mark fallthroughs

Explicitly mark the fallthroughs as intentional in the code
pattern where we gradually increment an index before falling
into the code to read/write that array entry:
  case THINGY_3: idx++;
  case THINGY_2: idx++;
  case THINGY_1: idx++;
  case THINGY_0: return s->thingy[idx];

This makes static analysers happy.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/omap_dma.c
hw/omap_spi.c