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(a)gibson.dropbear.id.au> --- 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