vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 7067a2ad88453472c20cb234c902043eef832540 parent 308297482bbcc0a61a7a6d2cb7300ea5ed680439 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 13 Feb 2020 13:48:09 +0100 Fix compiler warnings Diffstat:
| M | core/ccan-config.c | | | 3 | ++- |
| M | util/keys.c | | | 4 | ++++ |
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/ccan-config.c b/core/ccan-config.c @@ -469,7 +469,8 @@ static bool run_test(const char *cmd, struct test *test) fclose(outf); if (verbose > 1) - if (system("cat " INPUT_FILE) == -1); + if (system("cat " INPUT_FILE) == -1) + ; if (test->link) { char *newcmd; diff --git a/util/keys.c b/util/keys.c @@ -41,6 +41,9 @@ static void printkey(TermKeyKey *key) { ; print("%s", key->utf8); break; + case TERMKEY_TYPE_UNKNOWN_CSI: + case TERMKEY_TYPE_MOUSE: + case TERMKEY_TYPE_POSITION: case TERMKEY_TYPE_FUNCTION: break; case TERMKEY_TYPE_KEYSYM: @@ -129,6 +132,7 @@ static void printkey(TermKeyKey *key) { case TERMKEY_SYM_KPCOMMA: case TERMKEY_SYM_KPPERIOD: case TERMKEY_SYM_KPEQUALS: + default: break; } break;