summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-04-04 22:53:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-04 22:53:04 +0000
commit6b0653b5ac74f7fb0b13d92072abb3a80fc6e189 (patch)
treeb15f436a7e3ec8140496e31f2d742b241cb5b652
parent735aa7ff768f393f063f6ae9a79824b0e91b0aed (diff)
downloadpango-6b0653b5ac74f7fb0b13d92072abb3a80fc6e189.tar.gz
Fix a few warnings.
2006-04-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c, pango/querymodules.c: Fix a few warnings.
-rw-r--r--ChangeLog4
-rw-r--r--pango/pango-utils.c4
-rw-r--r--pango/querymodules.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e0dc647e..b3ee33f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-04-04 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/pango-utils.c, pango/querymodules.c: Fix a few warnings.
+
2006-04-03 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-impl.h: Make sure TTAG_GDEF and frineds are
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 290e9fef..3f7211f1 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -459,7 +459,7 @@ read_config_file (const char *filename, gboolean enoent_error)
GError *key_file_error = NULL;
gchar **groups;
gsize groups_count = 0;
- gint group_index;
+ guint group_index;
if (!g_key_file_load_from_file(key_file,filename, 0, &key_file_error))
{
@@ -488,7 +488,7 @@ read_config_file (const char *filename, gboolean enoent_error)
if (keys)
{
- gint key_index;
+ guint key_index;
for (key_index = 0; key_index < keys_count; key_index++)
{
diff --git a/pango/querymodules.c b/pango/querymodules.c
index 63939006..b30d4d59 100644
--- a/pango/querymodules.c
+++ b/pango/querymodules.c
@@ -37,12 +37,12 @@
#endif
#include <glib/gprintf.h>
-#if USE_LA_MODULES
+#ifdef USE_LA_MODULES
#define SOEXT ".la"
#else
#define SOEXT ("." G_MODULE_SUFFIX)
#endif
-#define SOEXT_LEN (strlen (SOEXT))
+#define SOEXT_LEN ((int) strlen (SOEXT))
static gboolean
string_needs_escape (const char *str)