OSDN Git Service

gdbus: Use gcc builtin instead of g_atomic
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 8 Apr 2013 20:56:18 +0000 (17:56 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 8 Apr 2013 22:01:21 +0000 (07:01 +0900)
commit38669d6e8676d1c895f16db9a07f86715380e1a3
treea3afc6c6079e6971d540b61d9a1a1c868da57390
parent271bbdc8e4a01f36025496880e8e0e0cc93767e2
gdbus: 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.

gdbus/client.c: In function ‘g_dbus_client_ref’:
/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]
gdbus/client.c