Re: [Qemu-devel] [PATCH v3 1/7] compiler: Add QEMU_BUILD_BUG_MSG() macro

2018-02-27 Thread Alberto Garcia
On Sat 24 Feb 2018 04:40:27 PM CET, Max Reitz wrote: > _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. > > Sig

Re: [Qemu-devel] [PATCH v3 1/7] compiler: Add QEMU_BUILD_BUG_MSG() macro

2018-02-24 Thread Eric Blake
On 02/24/2018 09:40 AM, Max Reitz wrote: _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

[Qemu-devel] [PATCH v3 1/7] compiler: Add QEMU_BUILD_BUG_MSG() macro

2018-02-24 Thread Max Reitz
_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 --- include/qemu/compiler.h | 12 +++