mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-31 11:00:26 +01:00
Turn a runtime assertion into a compile-time assertion
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54972 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk> Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
parent
e8136f0d30
commit
24a9b93021
1 changed files with 1 additions and 2 deletions
|
|
@ -506,8 +506,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue