hw/rtc/twl92230: Add missing 'break'
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 11 Dec 2020 15:46:05 +0000 (16:46 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 18 Dec 2020 08:15:47 +0000 (09:15 +0100)
Add missing 'break' to fix:

  hw/rtc/twl92230.c: In function ‘menelaus_write’:
  hw/rtc/twl92230.c:713:5: error: label at end of compound statement
    713 |     default:
        |     ^~~~~~~

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201211154605.511714-1-f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/rtc/twl92230.c

index a787bd247da66a4ff0c3fe40c32aabc51749a97d..006d75e1741a48742ab078f5494ceaf9f4093b62 100644 (file)
@@ -697,6 +697,7 @@ static void menelaus_write(void *opaque, uint8_t addr, uint8_t value)
 #ifdef VERBOSE
         printf("%s: unknown register %02x\n", __func__, addr);
 #endif
+        break;
     }
 }