summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-01 12:29:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-17 19:20:36 -0400
commit0b9c264a5ee8b2766ae37f6b0426655452919b4b (patch)
treeeafb121f5cfdd22aa2aef8aaa11e2edfcf218e97 /pango/pango-language.c
parent7dd4a84b99af85de61a3d216bf50bca0d11683d3 (diff)
downloadpango-0b9c264a5ee8b2766ae37f6b0426655452919b4b.tar.gz
Fix a cast-align warning
clang doesn't know that this is fine, and complains. So help it out.
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r--pango/pango-language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c
index bb5ed470..410ca0bf 100644
--- a/pango/pango-language.c
+++ b/pango/pango-language.c
@@ -66,7 +66,7 @@ pango_language_get_private (PangoLanguage *language)
if (!language)
return NULL;
- priv = (PangoLanguagePrivate *) ((char *)language - sizeof (PangoLanguagePrivate));
+ priv = (PangoLanguagePrivate *)(void *)((char *)language - sizeof (PangoLanguagePrivate));
if (G_UNLIKELY (priv->magic != PANGO_LANGUAGE_PRIVATE_MAGIC))
{