[libgdata/libgdata-0-14: 12/18] core: Fix strict-aliasing problems with authentication domains
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-14: 12/18] core: Fix strict-aliasing problems with authentication domains
- Date: Thu, 19 Dec 2013 01:17:20 +0000 (UTC)
commit b656c57bfd487177236361ec49974726a4f62f23
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 73905f4..b8c362b 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); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]