On 08/21/2017 05:17 PM, Thomas Huth wrote: > On 21.08.2017 17:10, Halil Pasic wrote: > [...] >> The situation is just complicated by the fact that there is code which >> relies on assert(true) asserting for correctness (e.g. virtio goes so far >> to make builds with normal asserts disabled fail). Thus for me it's hard >> to assume that the assertion is guaranteed to be disabled in production. > > FYI: https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg03608.html > > Thomas >
Thanks, I've missed that. With that assumed it becomes either assert(false) or return -ENODEV but not both. Regards, Halil