]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
etc/cppcheck/cppcheck.suppress: constVariablePointer: Silence diagnostic
authorAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 21:53:06 +0000 (22:53 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 21:56:33 +0000 (22:56 +0100)
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 <alx@kernel.org>
etc/cppcheck/cppcheck.suppress

index 7353f4ca511ef942d227ec2b5b15378ff2a23c9f..1d66ee9783d7cb2b678e184b3b176aaf9ceb204d 100644 (file)
@@ -2,6 +2,7 @@ checkersReport
 ConfigurationNotChecked
 constParameter
 constParameterCallback
+constVariablePointer
 knownConditionTrueFalse
 missingIncludeSystem
 nullPointerOutOfMemory