shithub: orca

Download patch

ref: 88b49d29bc4732d508a7f1e39804531f41f2affc
parent: dbcb8e1e2946030e2abb7ad59af89a3317632f78
author: cancel <cancel@cancel.fm>
date: Tue Dec 4 11:19:20 EST 2018

Fix build warning on impossible switch case

--- a/tui_main.c
+++ b/tui_main.c
@@ -182,9 +182,9 @@
   Glyph beneath = gbuffer[cursor_y * field_w + cursor_x];
   char displayed;
   if (beneath == '.') {
+    displayed = '@';
     switch (input_mode) {
     case Tui_input_mode_normal:
-      displayed = '@';
       break;
     case Tui_input_mode_piano:
       displayed = '^';