From: Karan Veer Date: Wed, 8 May 2024 01:12:15 +0000 (-0400) Subject: perl: fix compile on clang by ignoring a warning X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84284d5fd6cbc74d77b337ccae5d2af8e8f5a99a;p=thirdparty%2Fcollectd.git perl: fix compile on clang by ignoring a warning A new warning type introduced since clang 12 causes a build failure. Ignore it to fix. https://reviews.llvm.org/D86751 Fixes: #4308 --- diff --git a/src/perl.c b/src/perl.c index 4c7c6912e..4260699db 100644 --- a/src/perl.c +++ b/src/perl.c @@ -33,6 +33,12 @@ /* do not automatically get the thread specific Perl interpreter */ #define PERL_NO_GET_CONTEXT +#if defined(__clang__) && defined(__clang_major__) +#if __clang_major__ >= 12 +#pragma clang diagnostic ignored "-Wcompound-token-split-by-macro" +#endif +#endif + #include "collectd.h" #include