From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202508 header.b=E1GoAJhA; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 068505A0619 for ; Thu, 02 Oct 2025 06:50:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1759380614; bh=8uZ8PvQSKlibRvzwRWWSQxlOQBrkCRZ2vLtoQ/Wy4Xs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E1GoAJhAgG405mNIts3WgxsYu9P1pb//EcJlMd1ldIr07d6RdFYxAOnsXTJw1ady3 lZ/FBVBPgAGJZZYnGtBudMPUdUORCasuJE8176wbnRkHt5klVg7NY5rO1C0nevR2VA zRxXPAOROcdTFc6QxqrPXjd5XoidiWGUhLS8pxrDFmRLPi+TrOvgtxkRr/FysArgGp br5XTEHk8qLW0jMdz7/J6q8Opc0G29aL/1ktDzErQSfQb5uO/L7UOlbmlnQz4/7yh6 Ogf1tAD7BhDkrjy+qfWD/WuUvUK2urG2nNlJ1nIURsgVbCHQHCdXgmbGQa/7J5Reja N7MZgoDpnmmyQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ccfVZ5hTnz4wDS; Thu, 2 Oct 2025 14:50:14 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 3/6] cppcheck: Suppress the suppression of a suppression Date: Thu, 2 Oct 2025 14:50:09 +1000 Message-ID: <20251002045012.4047974-4-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251002045012.4047974-1-david@gibson.dropbear.id.au> References: <20251002045012.4047974-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GPRJG5X45ZNONWCOORXCXHPVJZ7BZQ2H X-Message-ID-Hash: GPRJG5X45ZNONWCOORXCXHPVJZ7BZQ2H X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Apparently cppcheck 2.18.3 no longer trips the funcArgNamesDifferent warning on our (re-)definition of close_range(). So instead we get an unmatchedSuppression warning. Signed-off-by: David Gibson --- linux_dep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_dep.h b/linux_dep.h index 1d9e1669..89e590c8 100644 --- a/linux_dep.h +++ b/linux_dep.h @@ -142,7 +142,7 @@ struct tcp_info_linux { #endif __attribute__ ((weak)) -/* cppcheck-suppress funcArgNamesDifferent */ +/* cppcheck-suppress [funcArgNamesDifferent,unmatchedSuppression] */ int close_range(unsigned int first, unsigned int last, int flags) { return syscall(SYS_close_range, first, last, flags); } -- 2.51.0