OSDN Git Service

shared: Use gcc builtin instead of g_atomic
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 8 Apr 2013 20:56:22 +0000 (17:56 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 8 Apr 2013 22:02:31 +0000 (07:02 +0900)
commit4dd429fcb918b77e82b22a5f619bdc575f78fd3e
tree4b633994211e357b10a721697665a87d242ebe2b
parentee27640ef6ed907e0b4de801cca6be5b165ac7cb
shared: Use gcc builtin instead of g_atomic

g_atomic_* end up using G_STATIC_ASSERT, causing gcc 4.8 to yell due to
-Wunused-local-typedefs.

/usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef ‘_GStaticAssertCompileTimeAssertion_2’ locally defined but not used [-Werror=unused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
src/shared/hciemu.c