[gtk/pre.c99: 2/2] gtkimcontextsimple.c: Declare variables at top-of-block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pre.c99: 2/2] gtkimcontextsimple.c: Declare variables at top-of-block
- Date: Fri, 16 Apr 2021 07:38:56 +0000 (UTC)
commit b69790a7760647efcfbd7a4cd582a3824fa34ae4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Apr 16 15:38:17 2021 +0800
gtkimcontextsimple.c: Declare variables at top-of-block
This way, things will continue to build on older compilers
gtk/gtkimcontextsimple.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]