tests: Fix a -Wbad-function-cast warning in the atomic tests21d1797a4f72b43ad2c2b71a55aa995978c47d62223/head
commit21d1797a4f72b43ad2c2b71a55aa995978c47d62
authorPhilip Withnall <withnall@endlessm.com>
Fri, 3 Aug 2018 10:08:26 +0000 (3 11:08 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Fri, 3 Aug 2018 10:08:26 +0000 (3 11:08 +0100)
tree4896ad159a147c45bf910003329219031a466604
parent516101c7023af25083c385b91a1ca7dc635c15a6
tests: Fix a -Wbad-function-cast warning in the atomic tests

Assigning the gpointer return value from g_atomic_pointer_get() to a
gsize variable was not making -Wbad-function-cast happy. Assign to an
intermediate gpointer variable and then cast that instead.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1475
glib/tests/atomic.c