From: Philippe Mathieu-Daudé <f4...@amsat.org>

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é <f4...@amsat.org>
Reviewed-by: Thomas Huth <th...@redhat.com>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
Message-Id: <20201211154605.511714-1-f4...@amsat.org>
Signed-off-by: Thomas Huth <th...@redhat.com>
---
 hw/rtc/twl92230.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/rtc/twl92230.c b/hw/rtc/twl92230.c
index a787bd247d..006d75e174 100644
--- a/hw/rtc/twl92230.c
+++ b/hw/rtc/twl92230.c
@@ -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;
     }
 }
 
-- 
2.27.0


Reply via email to