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