[libvirt PATCH v2 01/12] glibcompat: Add G_GNUC_UNUSED to g_auto* definitions for clang

Ján Tomko jtomko at redhat.com
Fri Sep 10 12:35:34 UTC 2021


On a Friday in 2021, Tim Wiederhake wrote:
>Workaround for a bug in clang. Clang emits an unused-variable warning
>if the variable is only accessed on scope exit by a destructor function.
>Note that gcc does not exhibit this behavior.
>
>See https://bugs.llvm.org/show_bug.cgi?id=3888 and
>https://bugs.llvm.org/show_bug.cgi?id=43482.
>
>Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
>---
> src/util/glibcompat.h | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>

https://listman.redhat.com/archives/libvir-list/2021-August/msg00863.html

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210910/ac6f9367/attachment-0001.sig>


More information about the libvir-list mailing list