+2008-12-25 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/break.c (pango_default_break):
+ * pango/fonts.c (find_field_any), (pango_font_class_init),
+ (pango_font_init), (pango_font_metrics_ref),
+ (pango_font_metrics_unref), (pango_font_family_class_init),
+ (pango_font_family_init), (pango_font_face_class_init),
+ (pango_font_face_init):
+ * pango/pango-attributes.c (pango_attr_list_ref),
+ (pango_attr_list_unref), (pango_attr_iterator_get_font):
+ * pango/pango-layout.c (pango_layout_set_height), (extents_free),
+ (no_shape_filter_func), (pango_layout_line_ref),
+ (pango_layout_line_unref), (pango_layout_get_item_properties):
+ * pango/pango-markup.c (end_element_handler), (text_handler),
+ (b_parse_func), (big_parse_func), (span_parse_func),
+ (i_parse_func), (markup_parse_func), (s_parse_func),
+ (sub_parse_func), (sup_parse_func), (small_parse_func),
+ (tt_parse_func), (u_parse_func):
+ * pango/pango-ot-info.c (get_glyph_class):
+ * pango/pango-renderer.c (get_item_properties),
+ (pango_renderer_default_prepare_run):
+ * pango/pango-utils.c (_pango_shape_shape):
+ * pango/pangocairo-fcfontmap.c
+ (pango_cairo_fc_font_map_get_font_type),
+ (pango_cairo_fc_font_map_context_substitute),
+ (pango_cairo_fc_font_map_context_key_get),
+ (pango_cairo_fc_font_map_context_key_copy),
+ (pango_cairo_fc_font_map_context_key_free),
+ (pango_cairo_fc_font_map_context_key_hash),
+ (pango_cairo_fc_font_map_context_key_equal):
+ * pango/pangocairo-fontmap.c
+ (pango_cairo_font_map_new_for_font_type),
+ (pango_cairo_font_map_set_default):
+ * pango/pangocairo-render.c (pango_cairo_renderer_init):
+ * pango/pangox-fontcache.c (free_cache_entry):
+ * pango/pangox-fontmap.c (close_display_cb),
+ (list_families_foreach), (pango_x_font_map_load_font),
+ (ignore_error):
+ * pango/pangox.c (average_width_foreach), (subfonts_foreach),
+ (pango_x_font_find_shaper), (pango_x_get_unknown_glyph),
+ (pango_x_get_item_properties), (pango_x_apply_ligatures),
+ (pango_x_font_get_unknown_glyph):
+ * pango/pangoxft-fontmap.c (pango_xft_font_map_init),
+ (close_display_cb):
+ * pango/querymodules.c (show_version):
+ Fix warnings.
+
2008-12-22 Behdad Esfahbod <behdad@gnome.org>
Bug 565379 – pango_font_description_better_match some style attributes
void
pango_default_break (const gchar *text,
gint length,
- PangoAnalysis *analysis,
+ PangoAnalysis *analysis G_GNUC_UNUSED,
PangoLogAttr *attrs,
- int attrs_len)
+ int attrs_len G_GNUC_UNUSED)
{
/* The rationale for all this is in section 5.15 of the Unicode 3.0 book,
* the line breaking stuff is also in TR14 on unicode.org
GraphemeBreakType GB_type;
/* Find the GraphemeBreakType of wc */
GB_type = GB_Other;
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_FORMAT:
if (wc == 0x200C && wc == 0x200D)
}
if (WB_type == WB_Other)
- switch (break_type)
+ switch ((int) break_type)
{
case G_UNICODE_BREAK_NUMERIC:
if (wc != 0x066C)
}
if (WB_type == WB_Other)
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_CONTROL:
if (wc != 0x000D && wc != 0x000A && wc != 0x000B && wc != 0x000C && wc != 0x0085)
attrs[i].is_char_break = TRUE;
/* Make any necessary replacements first */
- switch (prev_break_type)
+ switch ((int) prev_break_type)
{
case G_UNICODE_BREAK_HANGUL_L_JAMO:
case G_UNICODE_BREAK_HANGUL_V_JAMO:
;
}
- switch (prev_break_type)
+ switch ((int) prev_break_type)
{
case G_UNICODE_BREAK_MANDATORY:
case G_UNICODE_BREAK_LINE_FEED:
* boundaries.
*/
- switch (break_type)
+ switch ((int) break_type)
{
case G_UNICODE_BREAK_MANDATORY:
case G_UNICODE_BREAK_LINE_FEED:
break;
}
- if (break_op != BREAK_ALREADY_HANDLED)
+ switch (break_op)
{
- switch (break_op)
- {
- case BREAK_PROHIBITED:
- /* can't break here */
- attrs[i].is_char_break = FALSE;
- break;
+ case BREAK_PROHIBITED:
+ /* can't break here */
+ attrs[i].is_char_break = FALSE;
+ break;
- case BREAK_IF_SPACES:
- /* break if prev char was space */
- if (prev_was_break_space)
- attrs[i].is_line_break = TRUE;
- break;
+ case BREAK_IF_SPACES:
+ /* break if prev char was space */
+ if (prev_was_break_space)
+ attrs[i].is_line_break = TRUE;
+ break;
- case BREAK_ALLOWED:
- attrs[i].is_line_break = TRUE;
- break;
+ case BREAK_ALLOWED:
+ attrs[i].is_line_break = TRUE;
+ break;
- default:
- g_assert_not_reached ();
- break;
- }
+ case BREAK_ALREADY_HANDLED:
+ break;
+
+ default:
+ g_assert_not_reached ();
+ break;
}
}
if (current_word_type != WordNone)
{
/* Check for a word end */
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_COMBINING_MARK:
case G_UNICODE_ENCLOSING_MARK:
else
{
/* Check for a word start */
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_LOWERCASE_LETTER:
case G_UNICODE_MODIFIER_LETTER:
*/
#define MAYBE_START_NEW_SENTENCE \
- switch (type) \
+ switch ((int) type) \
{ \
case G_UNICODE_LINE_SEPARATOR: \
case G_UNICODE_PARAGRAPH_SEPARATOR: \
/* Break after line/para separators except carriage return
* followed by newline
*/
- switch (prev_type)
+ switch ((int) prev_type)
{
case G_UNICODE_LINE_SEPARATOR:
case G_UNICODE_PARAGRAPH_SEPARATOR:
/* break before para/line separators except newline following
* carriage return
*/
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_LINE_SEPARATOR:
case G_UNICODE_PARAGRAPH_SEPARATOR:
{
case STATE_SENTENCE_OUTSIDE:
/* Start sentence if we have non-whitespace/format/control */
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_LINE_SEPARATOR:
case G_UNICODE_PARAGRAPH_SEPARATOR:
* loosely-specified OTHER_PUNCTUATION such as period,
* comma, etc.; follow Unicode rules for breaks
*/
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_OTHER_PUNCTUATION:
case G_UNICODE_CLOSE_PUNCTUATION:
/* End sentence on anything besides more punctuation; follow
* rules for breaks
*/
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_OTHER_PUNCTUATION:
case G_UNICODE_CLOSE_PUNCTUATION:
* we had to see a space, which ends the sentence.
*/
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_SPACE_SEPARATOR:
/* continue in this state */
break;
case STATE_SENTENCE_DOT:
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_CLOSE_PUNCTUATION:
sentence_state = STATE_SENTENCE_POST_DOT_CLOSE;
break;
case STATE_SENTENCE_POST_DOT_CLOSE:
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_SPACE_SEPARATOR:
possible_sentence_end = i;
possible_sentence_boundary = i;
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_SPACE_SEPARATOR:
/* remain in current state */
break;
case STATE_SENTENCE_POST_DOT_OPEN:
- switch (type)
+ switch ((int) type)
{
case G_UNICODE_OPEN_PUNCTUATION:
/* continue in current state */
#define FIELD(NAME, MASK) \
G_STMT_START { \
if (find_field (NAME##_map, G_N_ELEMENTS (NAME##_map), str, len, \
- desc ? (int *)&desc->NAME : NULL)) \
+ desc ? (int *)(void *)&desc->NAME : NULL)) \
{ \
if (desc) \
desc->mask |= MASK; \
G_DEFINE_ABSTRACT_TYPE (PangoFont, pango_font, G_TYPE_OBJECT)
static void
-pango_font_class_init (PangoFontClass *class)
+pango_font_class_init (PangoFontClass *class G_GNUC_UNUSED)
{
}
static void
-pango_font_init (PangoFont *font)
+pango_font_init (PangoFont *font G_GNUC_UNUSED)
{
}
if (metrics == NULL)
return NULL;
- g_atomic_int_inc (&metrics->ref_count);
+ g_atomic_int_inc ((int *) &metrics->ref_count);
return metrics;
}
g_return_if_fail (metrics->ref_count > 0 );
- if (g_atomic_int_dec_and_test (&metrics->ref_count))
+ if (g_atomic_int_dec_and_test ((int *) &metrics->ref_count))
g_slice_free (PangoFontMetrics, metrics);
}
G_DEFINE_ABSTRACT_TYPE (PangoFontFamily, pango_font_family, G_TYPE_OBJECT)
static void
-pango_font_family_class_init (PangoFontFamilyClass *class)
+pango_font_family_class_init (PangoFontFamilyClass *class G_GNUC_UNUSED)
{
}
static void
-pango_font_family_init (PangoFontFamily *family)
+pango_font_family_init (PangoFontFamily *family G_GNUC_UNUSED)
{
}
G_DEFINE_ABSTRACT_TYPE (PangoFontFace, pango_font_face, G_TYPE_OBJECT)
static void
-pango_font_face_class_init (PangoFontFaceClass *class)
+pango_font_face_class_init (PangoFontFaceClass *class G_GNUC_UNUSED)
{
}
static void
-pango_font_face_init (PangoFontFace *face)
+pango_font_face_init (PangoFontFace *face G_GNUC_UNUSED)
{
}
if (list == NULL)
return NULL;
- g_atomic_int_inc (&list->ref_count);
+ g_atomic_int_inc ((int *) &list->ref_count);
return list;
}
g_return_if_fail (list->ref_count > 0);
- if (g_atomic_int_dec_and_test (&list->ref_count))
+ if (g_atomic_int_dec_and_test ((int *) &list->ref_count))
{
tmp_list = list->attributes;
while (tmp_list)
PangoAttribute *attr = tmp_list1->data;
tmp_list1 = tmp_list1->next;
- switch (attr->klass->type)
+ switch ((int) attr->klass->type)
{
case PANGO_ATTR_FONT_DESC:
{
* Bug 549003
*/
if (layout->ellipsize != PANGO_ELLIPSIZE_NONE &&
- !(layout->lines && layout->is_ellipsized == FALSE && layout->line_count <= -height))
+ !(layout->lines && layout->is_ellipsized == FALSE &&
+ height < 0 && layout->line_count <= (guint) -height))
pango_layout_clear_lines (layout);
}
}
}
static void
-extents_free (Extents *ext, gpointer data)
+extents_free (Extents *ext, gpointer data G_GNUC_UNUSED)
{
g_slice_free (Extents, ext);
}
static gboolean
no_shape_filter_func (PangoAttribute *attribute,
- gpointer data)
+ gpointer data G_GNUC_UNUSED)
{
static const PangoAttrType no_shape_types[] = {
PANGO_ATTR_FOREGROUND,
if (line == NULL)
return NULL;
- g_atomic_int_inc (&private->ref_count);
+ g_atomic_int_inc ((int *) &private->ref_count);
return line;
}
g_return_if_fail (private->ref_count > 0);
- if (g_atomic_int_dec_and_test (&private->ref_count))
+ if (g_atomic_int_dec_and_test ((int *) &private->ref_count))
{
g_slist_foreach (line->runs, (GFunc)free_run, GINT_TO_POINTER (1));
g_slist_free (line->runs);
{
PangoAttribute *attr = tmp_list->data;
- switch (attr->klass->type)
+ switch ((int) attr->klass->type)
{
case PANGO_ATTR_UNDERLINE:
properties->uline = ((PangoAttrInt *)attr)->value;
}
static void
-end_element_handler (GMarkupParseContext *context,
- const gchar *element_name,
+end_element_handler (GMarkupParseContext *context G_GNUC_UNUSED,
+ const gchar *element_name G_GNUC_UNUSED,
gpointer user_data,
- GError **error)
+ GError **error G_GNUC_UNUSED)
{
markup_data_close_tag (user_data);
}
static void
-text_handler (GMarkupParseContext *context,
+text_handler (GMarkupParseContext *context G_GNUC_UNUSED,
const gchar *text,
gsize text_len,
gpointer user_data,
- GError **error)
+ GError **error G_GNUC_UNUSED)
{
MarkupData *md = user_data;
} }G_STMT_END
static gboolean
-b_parse_func (MarkupData *md,
+b_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-big_parse_func (MarkupData *md,
+big_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-span_parse_func (MarkupData *md,
+span_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
const gchar **values,
{
PangoUnderline ul = PANGO_UNDERLINE_NONE;
- if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, &ul, line_number, error))
+ if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, (int *) &ul, line_number, error))
goto error;
add_attribute (tag, pango_attr_underline_new (ul));
{
PangoGravity gr = PANGO_GRAVITY_SOUTH;
- if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, &gr, line_number, error))
+ if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, (int *) &gr, line_number, error))
goto error;
add_attribute (tag, pango_attr_gravity_new (gr));
{
PangoGravityHint hint = PANGO_GRAVITY_HINT_NATURAL;
- if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, &hint, line_number, error))
+ if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, (int *) &hint, line_number, error))
goto error;
add_attribute (tag, pango_attr_gravity_hint_new (hint));
}
static gboolean
-i_parse_func (MarkupData *md,
+i_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-markup_parse_func (MarkupData *md,
- OpenTag *tag,
- const gchar **names,
- const gchar **values,
- GMarkupParseContext *context,
- GError **error)
+markup_parse_func (MarkupData *md G_GNUC_UNUSED,
+ OpenTag *tag G_GNUC_UNUSED,
+ const gchar **names G_GNUC_UNUSED,
+ const gchar **values G_GNUC_UNUSED,
+ GMarkupParseContext *context G_GNUC_UNUSED,
+ GError **error G_GNUC_UNUSED)
{
/* We don't do anything with this tag at the moment. */
}
static gboolean
-s_parse_func (MarkupData *md,
+s_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
#define SUPERSUB_RISE 5000
static gboolean
-sub_parse_func (MarkupData *md,
+sub_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-sup_parse_func (MarkupData *md,
+sup_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-small_parse_func (MarkupData *md,
+small_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-tt_parse_func (MarkupData *md,
+tt_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
}
static gboolean
-u_parse_func (MarkupData *md,
+u_parse_func (MarkupData *md G_GNUC_UNUSED,
OpenTag *tag,
const gchar **names,
- const gchar **values,
+ const gchar **values G_GNUC_UNUSED,
GMarkupParseContext *context,
GError **error)
{
(charcode >= 0xFE70 && charcode <= 0XFEFF)) /* Arabic Presentation Forms-B */
return FALSE;
- switch (g_unichar_type (charcode))
+ switch ((int) g_unichar_type (charcode))
{
case G_UNICODE_COMBINING_MARK:
case G_UNICODE_ENCLOSING_MARK:
{
PangoAttribute *attr = l->data;
- switch (attr->klass->type)
+ switch ((int) attr->klass->type)
{
case PANGO_ATTR_SHAPE:
if (shape_attr)
{
PangoAttribute *attr = l->data;
- switch (attr->klass->type)
+ switch ((int) attr->klass->type)
{
case PANGO_ATTR_UNDERLINE:
renderer->underline = ((PangoAttrInt *)attr)->value;
void
_pango_shape_shape (const char *text,
gint n_chars,
- PangoRectangle *shape_ink,
+ PangoRectangle *shape_ink G_GNUC_UNUSED,
PangoRectangle *shape_logical,
PangoGlyphString *glyphs)
{
}
static cairo_font_type_t
-pango_cairo_fc_font_map_get_font_type (PangoCairoFontMap *cfontmap)
+pango_cairo_fc_font_map_get_font_type (PangoCairoFontMap *cfontmap G_GNUC_UNUSED)
{
return CAIRO_FONT_TYPE_FT;
}
}
static void
-pango_cairo_fc_font_map_context_substitute (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_substitute (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
PangoContext *context,
FcPattern *pattern)
{
}
static gconstpointer
-pango_cairo_fc_font_map_context_key_get (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_key_get (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
PangoContext *context)
{
return _pango_cairo_context_get_merged_font_options (context);
}
static gpointer
-pango_cairo_fc_font_map_context_key_copy (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_key_copy (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
gconstpointer key)
{
return cairo_font_options_copy (key);
}
static void
-pango_cairo_fc_font_map_context_key_free (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_key_free (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
gpointer key)
{
cairo_font_options_destroy (key);
static guint32
-pango_cairo_fc_font_map_context_key_hash (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_key_hash (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
gconstpointer key)
{
return (guint32)cairo_font_options_hash (key);
}
static gboolean
-pango_cairo_fc_font_map_context_key_equal (PangoFcFontMap *fcfontmap,
+pango_cairo_fc_font_map_context_key_equal (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
gconstpointer key_a,
gconstpointer key_b)
{
/* Make sure that the type system is initialized */
g_type_init ();
- switch (fonttype)
+ switch ((int) fonttype)
{
#if defined(HAVE_CAIRO_ATSUI)
case CAIRO_FONT_TYPE_QUARTZ:
if (fontmap)
g_object_ref (fontmap);
- default_font_map = fontmap;
+ default_font_map = (PangoFontMap *) fontmap;
}
/**
}
static void
-pango_cairo_renderer_init (PangoCairoRenderer *renderer)
+pango_cairo_renderer_init (PangoCairoRenderer *renderer G_GNUC_UNUSED)
{
}
};
static void
-free_cache_entry (char *xlfd,
+free_cache_entry (char *xlfd G_GNUC_UNUSED,
CacheEntry *entry,
PangoXFontCache *cache)
{
static int
close_display_cb (Display *display,
- XExtCodes *extcodes)
+ XExtCodes *extcodes G_GNUC_UNUSED)
{
pango_x_shutdown_display (display);
registered_displays = g_slist_remove (registered_displays, display);
}
static void
-list_families_foreach (gpointer key,
+list_families_foreach (gpointer key G_GNUC_UNUSED,
gpointer value,
gpointer user_data)
{
static PangoFont *
pango_x_font_map_load_font (PangoFontMap *fontmap,
- PangoContext *context,
+ PangoContext *context G_GNUC_UNUSED,
const PangoFontDescription *description)
{
PangoXFontMap *xfontmap = (PangoXFontMap *)fontmap;
static gboolean error_occurred;
static int
-ignore_error (Display *d,
- XErrorEvent *e)
+ignore_error (Display *d G_GNUC_UNUSED,
+ XErrorEvent *e G_GNUC_UNUSED)
{
return 0;
}
}
}
-G_CONST_RETURN char *
+static G_CONST_RETURN char *
pango_x_family_get_name (PangoFontFamily *family)
{
PangoXFamily *xfamily = PANGO_X_FAMILY (family);
}
static void
-average_width_foreach (PangoFont *font,
+average_width_foreach (PangoFont *font G_GNUC_UNUSED,
PangoGlyphInfo *glyph_info,
gpointer data)
{
static void
-subfonts_foreach (gpointer key, gpointer value, gpointer data)
+subfonts_foreach (gpointer key, gpointer value, gpointer data G_GNUC_UNUSED)
{
g_free (key);
g_free (value);
}
static PangoEngineShape *
-pango_x_font_find_shaper (PangoFont *font,
+pango_x_font_find_shaper (PangoFont *font G_GNUC_UNUSED,
PangoLanguage *language,
guint32 ch)
{
* Return value: a glyph index into @font.
**/
PangoGlyph
-pango_x_get_unknown_glyph (PangoFont *font)
+pango_x_get_unknown_glyph (PangoFont *font G_GNUC_UNUSED)
{
return PANGO_GET_UNKNOWN_GLYPH (0);
}
{
PangoAttribute *attr = tmp_list->data;
- switch (attr->klass->type)
+ switch ((int) attr->klass->type)
{
case PANGO_ATTR_UNDERLINE:
if (uline)
* Return value: %FALSE, always.
*/
gboolean
-pango_x_apply_ligatures (PangoFont *font,
- PangoXSubfont subfont_id,
- gunichar **glyphs,
- int *n_glyphs,
- int **clusters)
+pango_x_apply_ligatures (PangoFont *font G_GNUC_UNUSED,
+ PangoXSubfont subfont_id G_GNUC_UNUSED,
+ gunichar **glyphs G_GNUC_UNUSED,
+ int *n_glyphs G_GNUC_UNUSED,
+ int **clusters G_GNUC_UNUSED)
{
return FALSE;
}
* Return value: a glyph index into @font.
*/
PangoGlyph
-pango_x_font_get_unknown_glyph (PangoFont *font,
+pango_x_font_get_unknown_glyph (PangoFont *font G_GNUC_UNUSED,
gunichar wc)
{
return PANGO_GET_UNKNOWN_GLYPH (wc);
}
static void
-pango_xft_font_map_init (PangoXftFontMap *xftfontmap)
+pango_xft_font_map_init (PangoXftFontMap *xftfontmap G_GNUC_UNUSED)
{
}
static int
close_display_cb (Display *display,
- XExtCodes *extcodes)
+ XExtCodes *extcodes G_GNUC_UNUSED)
{
GSList *tmp_list;
}
static gboolean
-show_version(const char *name,
- const char *arg,
- gpointer data,
- GError **error)
+show_version(const char *name G_GNUC_UNUSED,
+ const char *arg G_GNUC_UNUSED,
+ gpointer data G_GNUC_UNUSED,
+ GError **error G_GNUC_UNUSED)
{
g_printf("pango-querymodules (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
g_printf("module interface version: %s\n", MODULE_VERSION);