[pango/pangowin32-more-harfbuzz: 9/9] pango/pango-impl-utils.h: Trivial fix for pre-C99



commit 366c05fb9338bb044f08531added484c75ba76ca
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jul 26 10:36:21 2019 +0800

    pango/pango-impl-utils.h: Trivial fix for pre-C99
    
    Make sure we don't try to declare variables as part of a for loop.

 pango/pango-impl-utils.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h
index 378f14a1..92a1168e 100644
--- a/pango/pango-impl-utils.h
+++ b/pango/pango-impl-utils.h
@@ -159,7 +159,9 @@ static struct {
 static inline G_GNUC_UNUSED const char *
 pango_get_ignorable (gunichar ch)
 {
-  for (int i = 0; i < G_N_ELEMENTS (ignorables); i++)
+  int i;
+
+  for (i = 0; i < G_N_ELEMENTS (ignorables); i++)
     {
       if (ch == ignorables[i].ch)
         return ignorables[i].nick;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]