diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-04 23:55:38 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-04 23:55:38 +0000 |
commit | b6942a337fd03b0f24a49f3b7336b9137828c5f4 (patch) | |
tree | ad95f548fbe6765cdea8bfcae095e42652697e26 /modules/indic | |
parent | 933f541030f770b446d95bb0b5b3c85d561a63e5 (diff) | |
download | pango-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 'modules/indic')
-rw-r--r-- | modules/indic/indic-fc.c | 14 | ||||
-rw-r--r-- | modules/indic/mprefixups.c | 4 |
2 files changed, 12 insertions, 6 deletions
diff --git a/modules/indic/indic-fc.c b/modules/indic/indic-fc.c index b1a8ba6e..49bbd0d9 100644 --- a/modules/indic/indic-fc.c +++ b/modules/indic/indic-fc.c @@ -45,8 +45,8 @@ struct _PangoIndicInfo { PangoOTTag scriptTag; const IndicOTClassTable *classTable; - gchar *gsubQuarkName; - gchar *gposQuarkName; + const gchar *gsubQuarkName; + const gchar *gposQuarkName; }; #define ENGINE_SUFFIX "ScriptEngineFc" @@ -250,7 +250,13 @@ get_gpos_ruleset (FT_Face face, const PangoIndicInfo *indic_info) } static void -set_glyphs (PangoFont *font, FT_Face face, const gunichar *wcs, gulong *tags, glong n_glyphs, PangoOTBuffer *buffer, gboolean process_zwj) +set_glyphs (PangoFont *font, + FT_Face face, + const gunichar *wcs, + gulong *tags, + glong n_glyphs, + PangoOTBuffer *buffer, + gboolean process_zwj) { gint i; @@ -416,7 +422,7 @@ PANGO_MODULE_ENTRY(list) (PangoEngineInfo **engines, PangoEngine * PANGO_MODULE_ENTRY(create) (const char *id) { - gint i; + guint i; for (i = 0; i < G_N_ELEMENTS(script_engines); i += 1) { diff --git a/modules/indic/mprefixups.c b/modules/indic/mprefixups.c index a3a3d018..c9dba6c3 100644 --- a/modules/indic/mprefixups.c +++ b/modules/indic/mprefixups.c @@ -64,8 +64,8 @@ void indic_mprefixups_apply(MPreFixups *mprefixups, PangoOTBuffer *buffer) glong fixup; for (fixup = 0; fixup < mprefixups->fFixupCount; fixup += 1) { - glong baseIndex = mprefixups->fFixupData[fixup].fBaseIndex; - glong mpreIndex = mprefixups->fFixupData[fixup].fMPreIndex; + gulong baseIndex = mprefixups->fFixupData[fixup].fBaseIndex; + gulong mpreIndex = mprefixups->fFixupData[fixup].fMPreIndex; glong baseGlyph = -1; glong mpreGlyph = -1; glong mpreLimit = -1; |