]> Git Repo - qemu.git/commitdiff
curses: assert get_wch return value is okay
authorPaolo Bonzini <[email protected]>
Thu, 18 Jul 2019 12:01:04 +0000 (14:01 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 21 Aug 2019 09:19:40 +0000 (11:19 +0200)
This prevents the compiler from reporting a possible uninitialized use
of maybe_keycode in function curses_refresh.

Cc: Gerd Hoffmann <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-id: 1563451264[email protected]

[ kraxel: whitespace fixup ]

Signed-off-by: Gerd Hoffmann <[email protected]>
ui/curses.c

index a6e260eb964d765cc18839027657f88cc14f18eb..ec281125acbdf28230d1808f68f2feaa24892aad 100644 (file)
@@ -225,6 +225,8 @@ static wint_t console_getch(enum maybe_keycode *maybe_keycode)
     case ERR:
         ret = -1;
         break;
+    default:
+        abort();
     }
     return ret;
 }
This page took 0.026256 seconds and 4 git commands to generate.