Add _DBUS_GNUC_UNUSED, and use it in _DBUS_STATIC_ASSERT
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 9 Sep 2014 11:49:44 +0000 (12:49 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Sep 2014 11:31:04 +0000 (12:31 +0100)
commitf70c0e98c5cc6eaae4727d14c389e2504e79e694
treedb6eaf6a5e2b01a4158b7b0e2167af51684a3be1
parente0c9d31be3b9eea9ee2a3a255bc2cf9aad713642
Add _DBUS_GNUC_UNUSED, and use it in _DBUS_STATIC_ASSERT

This means we can use _DBUS_STATIC_ASSERT at non-global scope without
tripping -Wunused-local-typedefs.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83767
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
(cherry picked from commit 0e3d08d45cb9a9ceb2c077875eeb38306dad37b8)
dbus/dbus-internals.h
dbus/dbus-macros.h