aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-18 14:01:04 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-08-21 11:19:40 +0200
commit68097ed5e5bd5bc5bfead8076dbef700a8537b15 (patch)
treeb94958c13ab1c43c6ba03eb40c6147702c7c040f /ui
parent17dc57990320edaad52ac9ea808be9719c91cea6 (diff)
curses: assert get_wch return value is okay
This prevents the compiler from reporting a possible uninitialized use of maybe_keycode in function curses_refresh. Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1563451264-46176-1-git-send-email-pbonzini@redhat.com [ kraxel: whitespace fixup ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/curses.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/curses.c b/ui/curses.c
index a6e260eb96..ec281125ac 100644
--- a/ui/curses.c
+++ b/ui/curses.c
@@ -225,6 +225,8 @@ static wint_t console_getch(enum maybe_keycode *maybe_keycode)
case ERR:
ret = -1;
break;
+ default:
+ abort();
}
return ret;
}