diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2018-01-23 19:14:25 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2018-01-23 19:20:08 -0800 |
commit | bc335a741f2d69b57e5a0d39c471ef14a4a70df4 (patch) | |
tree | fc57c6bed7819bae3a54f4e9f346d6356b76033e /src/cairo-misc.c | |
parent | 6c675653b1cc325b78eb54dc3669ad207c653e2d (diff) | |
download | cairo-bc335a741f2d69b57e5a0d39c471ef14a4a70df4.tar.gz |
Fix two type casting warnings in get_C_locale()
cairo-misc.c:806:43: warning: passing argument 1 of ‘_cairo_atomic_ptr_get’ from incompatible pointer type
C = (locale_t) _cairo_atomic_ptr_get (&C_locale);
^
cairo-misc.c:811:45: warning: passing argument 1 of ‘_cairo_atomic_ptr_cmpxchg_impl’ from incompatible pointer type
if (!_cairo_atomic_ptr_cmpxchg (&C_locale, NULL, C)) {
^
Routines are expecting a void** so cast.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r-- | src/cairo-misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index cf0d6d160..ecd866a64 100644 --- a/src/cairo-misc.c +++ b/src/cairo-misc.c @@ -803,12 +803,12 @@ get_C_locale (void) locale_t C; retry: - C = (locale_t) _cairo_atomic_ptr_get (&C_locale); + C = (locale_t) _cairo_atomic_ptr_get ((void **) &C_locale); if (unlikely (!C)) { C = newlocale (LC_ALL_MASK, "C", NULL); - if (!_cairo_atomic_ptr_cmpxchg (&C_locale, NULL, C)) { + if (!_cairo_atomic_ptr_cmpxchg ((void **) &C_locale, NULL, C)) { freelocale (C_locale); goto retry; } |