Skip to content

tests: Fix a -Wbad-function-cast warning in the atomic tests

Philip Withnall requested to merge pwithnall/glib:1475-atomic-casts into master

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

#1475 (closed)

Closes #1475 (closed)

Untested on armel. Needs testing on the Debian builders.

Merge request reports