From 92b1ffe75c902ab46d12b4084d5f4efe23293e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 13 Feb 2020 13:48:09 +0100 Subject: Fix compiler warnings --- core/ccan-config.c | 3 ++- util/keys.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/ccan-config.c b/core/ccan-config.c index f4edb8e..d118df0 100644 --- 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 index 2026bad..398c512 100644 --- 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; -- cgit v1.2.3