summaryrefslogtreecommitdiff
path: root/telepathy-glib/errors.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-07 11:31:06 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-07 11:31:06 +0100
commit68db85cbafb8495705f943453845c51e37eebfe9 (patch)
treee88b95e155fc4a0880b160aa5d1cb408ce571c2c /telepathy-glib/errors.c
parent9c807e9968cb5f28c53a59086afb32cfb6644e86 (diff)
downloadtelepathy-glib-68db85cbafb8495705f943453845c51e37eebfe9.tar.gz
Use G_STATIC_ASSERT instead of tp_verify()
Diffstat (limited to 'telepathy-glib/errors.c')
-rw-r--r--telepathy-glib/errors.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/telepathy-glib/errors.c b/telepathy-glib/errors.c
index 2c7e5cd5b..4442056a5 100644
--- a/telepathy-glib/errors.c
+++ b/telepathy-glib/errors.c
@@ -229,8 +229,6 @@ tp_errors_quark (void)
{
GQuark domain = g_quark_from_static_string ("tp_errors");
- tp_verify_statement (sizeof (GQuark) <= sizeof (gsize));
-
g_type_init ();
dbus_g_error_domain_register (domain, TP_ERROR_PREFIX,
TP_TYPE_ERROR);
@@ -239,3 +237,6 @@ tp_errors_quark (void)
return (GQuark) quark;
}
+
+/* tp_errors_quark assumes this */
+G_STATIC_ASSERT (sizeof (GQuark) <= sizeof (gsize));