diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-02-13 13:48:09 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-02-13 13:48:09 +0100 |
| commit | 92b1ffe75c902ab46d12b4084d5f4efe23293e96 (patch) | |
| tree | 212529dbb95188c189b53cfd1010ee9b71b8b271 | |
| parent | 46a2b9991ff3faf47b02dfe9b37ffb0efe354b3d (diff) | |
| download | vis-92b1ffe75c902ab46d12b4084d5f4efe23293e96.tar.gz vis-92b1ffe75c902ab46d12b4084d5f4efe23293e96.tar.xz | |
Fix compiler warnings
| -rw-r--r-- | core/ccan-config.c | 3 | ||||
| -rw-r--r-- | util/keys.c | 4 |
2 files changed, 6 insertions, 1 deletions
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; |
