From 368d74cc25c59e7531217a13310d7bd79c498b53 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 6 Apr 2025 06:39:26 +0100 Subject: [PATCH] Remove two unused variables. They caused build failures at -Wall. --- terminal/terminal.c | 2 +- unix/window.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/terminal/terminal.c b/terminal/terminal.c index 0bd94ccd..6198a411 100644 --- a/terminal/terminal.c +++ b/terminal/terminal.c @@ -8145,7 +8145,7 @@ void term_set_preedit_text(Terminal *term, char *preedit_text) term->preedit_termline = NULL; if (preedit_text != NULL) { BinarySource src[1]; - int width = 0, i; + int width = 0; term->preedit_termline = newtermline(term, 0, false); BinarySource_BARE_INIT(src, preedit_text, strlen(preedit_text)); diff --git a/unix/window.c b/unix/window.c index 95916913..9d5b3fd3 100644 --- a/unix/window.c +++ b/unix/window.c @@ -2120,8 +2120,6 @@ void input_method_commit_event(GtkIMContext *imc, gchar *str, gpointer data) void input_method_preedit_start_event(GtkIMContext *imc, gpointer data) { - GtkFrontend *inst = (GtkFrontend *)data; - #ifdef KEY_EVENT_DIAGNOSTICS debug(" - IM preedit-start event\n"); #endif