summaryrefslogtreecommitdiff
path: root/pango/pangoft2-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-08-30 14:14:22 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-08-30 14:14:47 -0400
commit14b0697a59f51dd017038ca2bb79ba2c2f4034df (patch)
treef660c2380fe4e3dd9cc1b8faca426f81264c6e36 /pango/pangoft2-fontmap.c
parentce791d34b18215bd89a31d9eeac9e72b2b8ceb77 (diff)
downloadpango-14b0697a59f51dd017038ca2bb79ba2c2f4034df.tar.gz
Bug 703995 - Compiler warnings about strict aliasing
Patch from Akira TAGOH.
Diffstat (limited to 'pango/pangoft2-fontmap.c')
-rw-r--r--pango/pangoft2-fontmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c
index aed5a234..3b43fbd6 100644
--- a/pango/pangoft2-fontmap.c
+++ b/pango/pangoft2-fontmap.c
@@ -305,8 +305,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
PangoFontMap *
pango_ft2_font_map_for_display (void)
{
- if (g_once_init_enter ((gsize*)&pango_ft2_global_fontmap))
- g_once_init_leave((gsize*)&pango_ft2_global_fontmap, (gsize)pango_ft2_font_map_new ());
+ if (g_once_init_enter (&pango_ft2_global_fontmap))
+ g_once_init_leave(&pango_ft2_global_fontmap, PANGO_FT2_FONT_MAP (pango_ft2_font_map_new ()));
return PANGO_FONT_MAP (pango_ft2_global_fontmap);
}