This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ad237253a1f0151fdded2fcf8329750c49507962

commit ad237253a1f0151fdded2fcf8329750c49507962 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Jun 25 23:31:06 2023 +0200

    dselect: Add constVariableReference as a cppcheck suppression
    
    In cppcheck version 2.11 the constVariable has been split into multiple
    checks, so we need to also suppress the new name for the already
    suppressed one, to make it work in old and new versions.
    
    Warned-by: cppcheck
    Changelog: internal
---
 dselect/pkgsublist.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dselect/pkgsublist.cc b/dselect/pkgsublist.cc
index c119b5c99..d7875dc69 100644
--- a/dselect/pkgsublist.cc
+++ b/dselect/pkgsublist.cc
@@ -109,6 +109,7 @@ void packagelist::addunavailable(deppossi *possi) {
               pkg_name(possi->up->up, pnaw_always));
 
   // cppcheck-suppress[constVariable]: false positive, operator() modifies it.
+  // cppcheck-suppress[constVariableReference]: idem, new name for the same.
   varbuf& vb= possi->up->up->clientdata->relations;
   vb(possi->ed->name);
   vb(_(" does not appear to be available\n"));

-- 
Dpkg.Org's dpkg

Reply via email to