patch 8.2.3770: new compiler warnings from clang-12 and clang-13

Problem:    New compiler warnings from clang-12 and clang-13.
Solution:   Adjust CI and suppress some warnings. (Ozaki Kiichi, closes #9314)
This commit is contained in:
ichizok
2021-12-09 21:08:01 +00:00
committed by Bram Moolenaar
parent 4c8c634365
commit dee78e1ce8
5 changed files with 29 additions and 8 deletions

View File

@ -0,0 +1,3 @@
# Clang 12 (or Apple clang 13) and later makes a warning '-Wcompound-token-split-by-macro' enable by default.
/^PERL_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=compound-token-split-by-macro/
/^RUBY_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=compound-token-split-by-macro/