summaryrefslogtreecommitdiff
path: root/telepathy-glib/errors.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-07-31 13:43:21 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-03 19:04:22 +0100
commitaac3d5b0ce6346f7c3824dec479c47e127e11db4 (patch)
tree214fbb9e539ce761e84398bf65fefd35387a2915 /telepathy-glib/errors.c
parent6bd150a2ddfa9ba0de69f8c1cb91359315f86298 (diff)
downloadtelepathy-glib-aac3d5b0ce6346f7c3824dec479c47e127e11db4.tar.gz
Convert assertions about sizeof to be checked at compile time
Diffstat (limited to 'telepathy-glib/errors.c')
-rw-r--r--telepathy-glib/errors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-glib/errors.c b/telepathy-glib/errors.c
index c723c7834..edc592db1 100644
--- a/telepathy-glib/errors.c
+++ b/telepathy-glib/errors.c
@@ -23,6 +23,8 @@
#include <glib.h>
#include <dbus/dbus-glib.h>
+#include <telepathy-glib/util.h>
+
/**
* TP_ERROR_PREFIX:
*
@@ -207,7 +209,7 @@ tp_errors_quark (void)
{
GQuark domain = g_quark_from_static_string ("tp_errors");
- g_assert (sizeof (GQuark) <= sizeof (gsize));
+ tp_verify_statement (sizeof (GQuark) <= sizeof (gsize));
g_type_init ();
dbus_g_error_domain_register (domain, TP_ERROR_PREFIX,