diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-19 19:04:49 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2013-12-18 23:41:31 +0000 |
commit | b656c57bfd487177236361ec49974726a4f62f23 (patch) | |
tree | b031713b8bbdd264dc6c59fa1dc246c47d097059 | |
parent | dd105feff61987c0f772f37cf3ec07012166e8b1 (diff) | |
download | libgdata-b656c57bfd487177236361ec49974726a4f62f23.tar.gz |
core: Fix strict-aliasing problems with authentication domains
Dodgy casts are the worst.
-rw-r--r-- | gdata/gdata-private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h index 73905f43..b8c362b5 100644 --- a/gdata/gdata-private.h +++ b/gdata/gdata-private.h @@ -122,7 +122,7 @@ get_##l_n##_authorization_domain (void) \ { \ static volatile GDataAuthorizationDomain *domain__volatile = NULL; \ \ - if (g_once_init_enter ((volatile gsize *) &domain__volatile) == TRUE) { \ + if (g_once_init_enter (&domain__volatile) == TRUE) { \ GDataAuthorizationDomain *domain; \ \ domain = g_object_new (GDATA_TYPE_AUTHORIZATION_DOMAIN, \ @@ -130,7 +130,7 @@ get_##l_n##_authorization_domain (void) \ "scope", SCOPE, \ NULL); \ \ - g_once_init_leave ((volatile gsize *) &domain__volatile, (gsize) domain); \ + g_once_init_leave (&domain__volatile, domain); \ } \ \ return GDATA_AUTHORIZATION_DOMAIN (domain__volatile); \ |