GNOME Bugzilla – Bug 701898
Missing type fixes for g_atomic_int_get g_atomic_pointer_get in gatomic.c
Last modified: 2015-08-27 16:09:07 UTC
Created attachment 246351 [details] [review] Add const to gatomic.c where necessary. After manually working around 701897, I then discover that some but not all instances of g_atomic_int_get and g_atomic_pointer_get in blib/gatomic.c have been updated to use const. This manifests itself as: CC libglib_2_0_la-gatomic.lo gatomic.c:686: error: conflicting types for 'g_atomic_int_get' gatomic.h:34: error: previous declaration of 'g_atomic_int_get' was here gatomic.c:686: error: conflicting types for 'g_atomic_int_get' gatomic.h:34: error: previous declaration of 'g_atomic_int_get' was here gatomic.c:801: error: conflicting types for 'g_atomic_pointer_get' gatomic.h:60: error: previous declaration of 'g_atomic_pointer_get' was here gatomic.c:801: error: conflicting types for 'g_atomic_pointer_get' gatomic.h:60: error: previous declaration of 'g_atomic_pointer_get' was here The fix is simple; add const in the two places it's missing, see attached patch.
This is a duplicate of bug 697386, which is fixed. Please close.
*** This bug has been marked as a duplicate of bug 697386 ***