[libgdata] core: Fix strict-aliasing problems with authentication domains
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Fix strict-aliasing problems with authentication domains
- Date: Tue, 19 Nov 2013 19:05:34 +0000 (UTC)
commit 8306c87c00ace13633301ca95a9db2e4935ae7da
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Nov 19 19:04:49 2013 +0000
core: Fix strict-aliasing problems with authentication domains
Dodgy casts are the worst.
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 dd76ad5..7e51760 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); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]