From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 5B2CC5A026F for ; Mon, 15 Jan 2024 07:39:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1705300788; bh=RKtcrkAC7qZ18EJLSGismmFNORdOYmGR1GNccJRsjR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k3EVeHfsXHriAxnEZXYXRpBsNpFIYC8DyVvN5Gk4pmVuPGIPZfjIQ7/dAWYI1Uav6 VjbxGEcA142M+gRSlO1A26NNwm50OXsn33eCu0mpI+/PvuNbuZMjK2au+O7ZoCNIyN 2Ep9OqEcG9D3CD/VU5k+hcb8KXG9FPDxVa1o+u9lpZ+/YGcwYhrT4tveCdsEuZ10+6 Z0tycZ9tmULK+fQN8hgl1J1s1oltUpu04qF1QMD4geNN3WALsWarfXI3Q5gi0A3ZO/ 6sTnOADLWhXqFBPr3qO2ir8yZ+HF9hukRM70hCmImUgbV4o2YG8Q7erEKPUea8WFUY fVn8DoCStagEw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4TD2Yw6Rm3z4xKR; Mon, 15 Jan 2024 17:39:48 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 3/3] pif: Remove unused pif_name() function Date: Mon, 15 Jan 2024 17:39:44 +1100 Message-ID: <20240115063944.1400285-4-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240115063944.1400285-1-david@gibson.dropbear.id.au> References: <20240115063944.1400285-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: CEHVSXFFLHA5GRK2LST3RYCKEAA2DZII X-Message-ID-Hash: CEHVSXFFLHA5GRK2LST3RYCKEAA2DZII 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: pif_name() has no current callers, although we expect some as we expand the flow table support. I'm not sure why this didn't get caught by one of our static checkers earlier, but it's now causing cppcheck failures for me. Add a cppcheck suppression. Signed-off-by: David Gibson --- pif.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pif.h b/pif.h index ca85b34..bd52936 100644 --- a/pif.h +++ b/pif.h @@ -38,6 +38,7 @@ static inline const char *pif_type(enum pif_type pt) return "?"; } +/* cppcheck-suppress unusedFunction */ static inline const char *pif_name(uint8_t pif) { return pif_type(pif); -- 2.43.0