Skip to content

Commit

Permalink
perl: fix compile on clang by ignoring a warning
Browse files Browse the repository at this point in the history
A new warning type introduced since clang 12 causes a build failure.
Ignore it to fix.

https://reviews.llvm.org/D86751

Fixes: #4308
  • Loading branch information
jvsg committed May 10, 2024
1 parent 4d29f1d commit 08f38bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/perl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdbool.h>

Expand Down

0 comments on commit 08f38bf

Please sign in to comment.