compiler: Add QEMU_BUILD_BUG_MSG() macro
commit9139b5672360aaa263da1d96cdfdbe16accb6e3b
authorMax Reitz <mreitz@redhat.com>
Sat, 24 Feb 2018 15:40:27 +0000 (24 16:40 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 15:00:14 +0000 (19 10:00 -0500)
tree340addbff2f0fbb8172f5e62844d4e7d2594ab92
parent7d0f982bfbb92fbfc1bf6c9bcaffe745996a763c
compiler: Add QEMU_BUILD_BUG_MSG() macro

_Static_assert() allows us to specify messages, and that may come in
handy.  Even without _Static_assert(), encouraging developers to put a
helpful message next to the QEMU_BUILD_BUG_* may make debugging easier
whenever it breaks.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20180224154033.29559-2-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
include/qemu/compiler.h