From c79907f90174842fb5213893e476e5d5f5b44eca Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Fri, 26 Jun 2020 18:26:03 -0400 Subject: [PATCH] Move cppcheck suppressions out of .github Move this file out of .github and add it to distribution. Reviewed-by: Brian Behlendorf Signed-off-by: Arvind Sankar Closes #10506 --- Makefile.am | 3 ++- .github/suppressions.txt => cppcheck-suppressions.txt | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename .github/suppressions.txt => cppcheck-suppressions.txt (100%) diff --git a/Makefile.am b/Makefile.am index 1b6d431e49..432e04c07d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,6 +29,7 @@ endif AUTOMAKE_OPTIONS = foreign EXTRA_DIST = autogen.sh copy-builtin +EXTRA_DIST += cppcheck-suppressions.txt EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am EXTRA_DIST += META AUTHORS COPYRIGHT LICENSE NEWS NOTICE README.md EXTRA_DIST += CODE_OF_CONDUCT.md @@ -176,7 +177,7 @@ lint: cppcheck paxcheck cppcheck: @if type cppcheck > /dev/null 2>&1; then \ cppcheck --quiet --force --error-exitcode=2 --inline-suppr \ - --suppressions-list=.github/suppressions.txt \ + --suppressions-list=${top_srcdir}/cppcheck-suppressions.txt \ -UHAVE_SSE2 -UHAVE_AVX512F -UHAVE_UIO_ZEROCOPY \ ${top_srcdir}; \ else \ diff --git a/.github/suppressions.txt b/cppcheck-suppressions.txt similarity index 100% rename from .github/suppressions.txt rename to cppcheck-suppressions.txt