std-aux: workaround unused variable warning with clang 14 and nm_auto cleanup attribute

This commit is contained in:
Thomas Haller 2022-10-07 20:57:21 +02:00
parent 4f60fe293c
commit afcfbe9973
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -42,8 +42,8 @@
#endif
#endif
#if defined(__clang__) && __clang_major__ == 13
/* Clang 13 can emit -Wunused-but-set-variable warning for cleanup variables
#if defined(__clang__) && (__clang_major__ == 13 || __clang_major__ == 14)
/* Clang 13/14 can emit -Wunused-but-set-variable warning for cleanup variables
* that are only assigned (never used otherwise). Hack around */
#define _nm_auto_extra _nm_unused
#else