Replace some runtime assertions with compile-time assertions
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 11 Sep 2014 11:55:52 +0000 (12:55 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Sep 2014 11:22:23 +0000 (12:22 +0100)
commit31b38090183b8bd77c86c1195d57b4a3b5df04da
tree9fb5c3a97c9b6de33f92ae351977f5ed1352e3cd
parent0e3d08d45cb9a9ceb2c077875eeb38306dad37b8
Replace some runtime assertions with compile-time assertions

This requires a little bit of code re-ordering, because
_DBUS_STATIC_ASSERT can appear anywhere that a variable declaration
would be valid, i.e. not after executable code.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83767
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
dbus/dbus-errors.c
dbus/dbus-hash.c
dbus/dbus-marshal-basic.c
dbus/dbus-message.c
dbus/dbus-signature.c
dbus/dbus-string.c
dbus/dbus-sysdeps-unix.c