This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 04822698b100b1d11e3a430ac7cdf8acd915eb58
Author: Jorge Guzman <[email protected]>
AuthorDate: Thu Jul 30 22:10:15 2026 -0300

    drivers/input: give the virtio decoder switches a statement to label
    
    Both switches end with a bare default label and no statement after it,
    which a compiler is entitled to reject:  a label has to label something.
    GCC for MIPS does, and the file is new enough that no configuration had
    compiled it yet.
    
    The next commit makes USBHOST_HIDKBD select INPUT_KEYBOARD, which pulls
    this file into twenty five configurations for the first time, ci20:jumbo
    among them, so fix it here rather than let that commit break them.
    
    Signed-off-by: Jorge Guzman <[email protected]>
---
 drivers/input/virtio_key_decode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/input/virtio_key_decode.c 
b/drivers/input/virtio_key_decode.c
index 7db6879c5f2..6d8f51cbca6 100644
--- a/drivers/input/virtio_key_decode.c
+++ b/drivers/input/virtio_key_decode.c
@@ -143,6 +143,7 @@ uint32_t keyboard_translate_virtio_code(uint16_t keycode, 
bool *special)
       case KEY_F24:
         return KEYCODE_F24;
       default:
+        break;
     }
 
   *special = false;
@@ -275,6 +276,7 @@ uint32_t keyboard_translate_virtio_code(uint16_t keycode, 
bool *special)
       case KEY_KPDOT:
         return '.';
       default:
+        break;
     }
 
   return 0;

Reply via email to