qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] curses: assert get_wch return value is okay
@ 2019-07-18 12:01 Paolo Bonzini
  2019-07-18 12:13 ` no-reply
  2019-08-21  9:20 ` Gerd Hoffmann
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2019-07-18 12:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

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>
---
 ui/curses.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/curses.c b/ui/curses.c
index a6e260e..a3ec9b5 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;
 }
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-21  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 12:01 [Qemu-devel] [PATCH] curses: assert get_wch return value is okay Paolo Bonzini
2019-07-18 12:13 ` no-reply
2019-08-21  9:20 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).