make: Add CPPCHECK_OPTS to allow excluding files from the check

With swig we now have C files that are generated with tools that are
not under our control, so provide an escape hatch for them.
This commit is contained in:
Christian Decker
2021-04-28 15:05:43 +02:00
committed by Rusty Russell
parent a4c19ba6ba
commit 6c67afeb03
2 changed files with 7 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ LIBHSMD_PY_GEN_FILES := contrib/libhsmd_python/swig_wrap.c \
contrib/libhsmd_python/libhsmd.py
PYTHON_GENERATED += contrib/libhsmd_python/libhsmd.py
CPPCHECK_OPTS += --suppress=nullPointer:contrib/libhsmd_python/swig_wrap.c
# Swig by default generates stubs in the file's directory, which is
# what we want.