On 4 December 2017 at 10:16, Stefan Hajnoczi <stefa...@redhat.com> wrote: > Yes, please! __attribute__((cleanup)) is great and we should use it in > QEMU. > > I haven't looked at compiler support though... :)
Looks like it came in in gcc 3.6, which is earlier than our earliest required version. For clang, it's harder to say because the clang documentation doesn't mention it at all, even though they actually support it AFAICT from googling. thanks -- PMM