[pango/pango2: 105/168] Quiet a compiler warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 105/168] Quiet a compiler warning
- Date: Mon, 20 Jun 2022 16:28:43 +0000 (UTC)
commit df6a9dfe94b7ff5adcdc52096315d195ee80c7fb
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 1592e305..c3ab531e 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]