summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-04-16 15:38:17 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-04-16 15:38:17 +0800
commitb69790a7760647efcfbd7a4cd582a3824fa34ae4 (patch)
treedd7164d7acd9702764374cda4d877334924fc147
parentda651ca7fcbd2052d10b1b18b4e8f62e16bba796 (diff)
downloadgtk+-pre.c99.tar.gz
gtkimcontextsimple.c: Declare variables at top-of-blockpre.c99
This way, things will continue to build on older compilers
-rw-r--r--gtk/gtkimcontextsimple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 89221ce80e..38806d05c3 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -553,8 +553,10 @@ no_sequence_matches (GtkIMContextSimple *context_simple,
if (i == n_compose - 1)
{
+ int j;
+
/* dead keys are never *really* dead */
- for (int j = 0; j < i; j++)
+ for (j = 0; j < i; j++)
{
ch = dead_key_to_unicode (priv->compose_buffer[j], &need_space);
if (ch)