aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-01-15 17:39:44 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-01-16 21:49:30 +0100
commit00c6eb6b68d9bc5abeabcd167882f5ef17f28143 (patch)
tree884a2af36e1798a70f564d03cb7d1c99f6aefbae
parenta179ca6707b29cfc01371fb5636b2f49d263ab83 (diff)
downloadpasst-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar.gz
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar.bz2
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar.lz
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar.xz
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.tar.zst
passt-00c6eb6b68d9bc5abeabcd167882f5ef17f28143.zip
pif: Remove unused pif_name() function
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 <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--pif.h1
1 files changed, 1 insertions, 0 deletions
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);