[pango/preferred-languages: 4/8] Fix a cast-align warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/preferred-languages: 4/8] Fix a cast-align warning
- Date: Wed, 9 Sep 2020 01:16:17 +0000 (UTC)
commit 5e4621b721c314cf5ba8c341b69537efefbe1554
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 1 12:29:16 2020 -0400
Fix a cast-align warning
clang doesn't know that this is fine, and complains.
So help it out.
pango/pango-language.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]