summaryrefslogtreecommitdiff
path: root/pango/modules.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-11-04 23:55:38 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-04 23:55:38 +0000
commitb6942a337fd03b0f24a49f3b7336b9137828c5f4 (patch)
treead95f548fbe6765cdea8bfcae095e42652697e26 /pango/modules.c
parent933f541030f770b446d95bb0b5b3c85d561a63e5 (diff)
downloadpango-b6942a337fd03b0f24a49f3b7336b9137828c5f4.tar.gz
Turn various gcc warnings off. Adding const, adding static, fully
2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.
Diffstat (limited to 'pango/modules.c')
-rw-r--r--pango/modules.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/modules.c b/pango/modules.c
index d0ede877..096d3b87 100644
--- a/pango/modules.c
+++ b/pango/modules.c
@@ -172,7 +172,7 @@ pango_module_load (GTypeModule *module)
pango_module->library = g_module_open (pango_module->path, G_MODULE_BIND_LAZY);
if (!pango_module->library)
{
- g_warning (g_module_error());
+ g_warning ("%s", g_module_error());
return FALSE;
}
@@ -186,7 +186,7 @@ pango_module_load (GTypeModule *module)
!g_module_symbol (pango_module->library, "script_engine_create",
(gpointer *)&pango_module->create))
{
- g_warning (g_module_error());
+ g_warning ("%s", g_module_error());
g_module_close (pango_module->library);
return FALSE;
@@ -545,7 +545,7 @@ map_add_engine (PangoMapInfo *info,
}
script = pair->info.scripts[i].script;
- if (script >= map->entries->len)
+ if ((guint)script >= map->entries->len)
g_array_set_size (map->entries, script + 1);
entry = &g_array_index (map->entries, PangoMapEntry, script);
@@ -635,7 +635,7 @@ pango_map_get_engine (PangoMap *map,
PangoMapEntry *entry = NULL;
PangoMapEntry *common_entry = NULL;
- if (script < map->entries->len)
+ if ((guint)script < map->entries->len)
entry = &g_array_index (map->entries, PangoMapEntry, script);
if (PANGO_SCRIPT_COMMON < map->entries->len)
@@ -692,7 +692,7 @@ pango_map_get_engines (PangoMap *map,
PangoMapEntry *entry = NULL;
PangoMapEntry *common_entry = NULL;
- if (script < map->entries->len)
+ if ((guint)script < map->entries->len)
entry = &g_array_index (map->entries, PangoMapEntry, script);
if (PANGO_SCRIPT_COMMON < map->entries->len)