From bc8ad43d89fe470c1b5746f3ff5a154f2e301f2d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 16 Apr 2013 12:14:14 +0100 Subject: [PATCH 5/5] Turn a runtime assertion into a compile-time assertion --- dbus/dbus-threads.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbus/dbus-threads.c b/dbus/dbus-threads.c index 9fbbae5..43676bc 100644 --- a/dbus/dbus-threads.c +++ b/dbus/dbus-threads.c @@ -504,8 +504,7 @@ init_locks (void) #undef LOCK_ADDR }; - _dbus_assert (_DBUS_N_ELEMENTS (global_locks) == - _DBUS_N_GLOBAL_LOCKS); + _DBUS_STATIC_ASSERT (_DBUS_N_ELEMENTS (global_locks) == _DBUS_N_GLOBAL_LOCKS); i = 0; -- 1.7.10.4