[pango/pango2: 233/301] Quiet a compiler warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 233/301] Quiet a compiler warning
- Date: Wed, 22 Jun 2022 15:53:41 +0000 (UTC)
commit 51e50910e8b519581de9f1f8cfa884ed536cf7d0
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 06:51:26 2022 -0400
Quiet a compiler warning
pango/pango-impl-utils.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h
index 1592e305a..c3ab531e5 100644
--- a/pango/pango-impl-utils.h
+++ b/pango/pango-impl-utils.h
@@ -183,9 +183,7 @@ static struct {
static inline G_GNUC_UNUSED const char *
pango_get_ignorable (gunichar ch)
{
- int i;
-
- for (i = 0; i < G_N_ELEMENTS (ignorables); i++)
+ for (guint i = 0; i < G_N_ELEMENTS (ignorables); i++)
{
if (ch < ignorables[i].ch)
return NULL;
@@ -193,6 +191,7 @@ pango_get_ignorable (gunichar ch)
if (ch == ignorables[i].ch)
return ignorables[i].nick;
}
+
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]