diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-19 19:04:49 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-19 19:04:49 +0000 |
commit | 8306c87c00ace13633301ca95a9db2e4935ae7da (patch) | |
tree | 0a0931ed7bbcd321aba3342ff353287594a7b932 | |
parent | c431be36871f2a28acb7ec06c104c4ae8ad8de2c (diff) | |
download | libgdata-8306c87c00ace13633301ca95a9db2e4935ae7da.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 dd76ad55..7e51760a 100644 --- a/gdata/gdata-private.h +++ b/gdata/gdata-private.h @@ -130,7 +130,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, \ @@ -138,7 +138,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); \ |