From f5d053034c029409115c4daf852d7d118e9bc671 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 28 Sep 2022 14:33:38 +1000 Subject: Mark unused functions for cppcheck We have a couple of functions that are unused (for now) by design. Although at least one has a flag so that gcc doesn't warn, cppcheck has its own warnings about this. Add specific inline suppressions for these rather than a blanket suppression in the Makefile. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- igmp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'igmp.c') diff --git a/igmp.c b/igmp.c index 2f3a9d1..da7e83d 100644 --- a/igmp.c +++ b/igmp.c @@ -13,4 +13,5 @@ */ /* TO BE IMPLEMENTED */ +/* cppcheck-suppress unusedFunction */ __attribute__((__unused__)) static void unused(void) { } -- cgit v1.2.3