util: add new ASSERT_BITFIELD_SIZE() macro (v3)
authorBrian Paul <brianp@vmware.com>
Wed, 15 Nov 2017 23:17:44 +0000 (16:17 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 03:35:17 +0000 (20:35 -0700)
commitfe81e1f9751cca8de33c3c45f6fc181c626c57f0
treef5593d5b4e9977617558e2fb86f7672eaa57f783
parentc8ce3c26893e91ae4e07b1c2d6cf4b89e8c297aa
util: add new ASSERT_BITFIELD_SIZE() macro (v3)

For checking that bitfields are large enough to hold the largest
expected value.

v2: move into existing util/macros.h header where STATIC_ASSERT() lives.
v3: add MAYBE_UNUSED to variable declaration

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/util/macros.h