diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-01-15 17:39:44 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-01-16 21:49:30 +0100 |
commit | 00c6eb6b68d9bc5abeabcd167882f5ef17f28143 (patch) | |
tree | 884a2af36e1798a70f564d03cb7d1c99f6aefbae /pif.h | |
parent | a179ca6707b29cfc01371fb5636b2f49d263ab83 (diff) | |
download | passt-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>
Diffstat (limited to 'pif.h')
-rw-r--r-- | pif.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |