From: Alejandro Colomar Date: Sun, 8 Feb 2026 21:53:06 +0000 (+0100) Subject: etc/cppcheck/cppcheck.suppress: constVariablePointer: Silence diagnostic X-Git-Tag: man-pages-6.17~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7056b99f8fdcf85e7cd6289ababe8141174125bc;p=thirdparty%2Fman-pages.git etc/cppcheck/cppcheck.suppress: constVariablePointer: Silence diagnostic The following diagnostic was triggered. It's not a false positive, but adding const wouldn't be helpful int his example. remote: .tmp/man/man2/userfaultfd.2.d/userfaultfd.c:121:17: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] remote: char *addr; /* Start of region handled by userfaultfd */ remote: ^ Signed-off-by: Alejandro Colomar --- diff --git a/etc/cppcheck/cppcheck.suppress b/etc/cppcheck/cppcheck.suppress index 7353f4ca5..1d66ee978 100644 --- a/etc/cppcheck/cppcheck.suppress +++ b/etc/cppcheck/cppcheck.suppress @@ -2,6 +2,7 @@ checkersReport ConfigurationNotChecked constParameter constParameterCallback +constVariablePointer knownConditionTrueFalse missingIncludeSystem nullPointerOutOfMemory