diff --git a/modules/ca/src/perl/Cap5.xs b/modules/ca/src/perl/Cap5.xs index 6d06a15f1..e17fcbaf0 100644 --- a/modules/ca/src/perl/Cap5.xs +++ b/modules/ca/src/perl/Cap5.xs @@ -12,6 +12,13 @@ * here and just generates unnecessary compiler warnings. */ #define REENTRINC +/* Clang-12 and later generates many warnings about compound token */ +#ifdef __has_warning +# if __has_warning("-Wcompound-token-split-by-macro") +# pragma clang diagnostic ignored "-Wcompound-token-split-by-macro" +# endif +#endif + #include "EXTERN.h" #include "perl.h" #include "XSUB.h"