mirror of
https://passt.top/passt
synced 2024-12-22 05:35:23 +00:00
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 <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
cd05be75fb
commit
f5d053034c
1
Makefile
1
Makefile
@ -283,7 +283,6 @@ cppcheck: $(SRCS) $(HEADERS)
|
||||
$(SYSTEM_INCLUDES:%=--suppress=*:%/*) \
|
||||
$(SYSTEM_INCLUDES:%=--suppress=unmatchedSuppression:%/*) \
|
||||
--inline-suppr \
|
||||
--suppress=unusedFunction \
|
||||
--suppress=unusedStructMember \
|
||||
\
|
||||
--suppress=unmatchedSuppression:dhcp.c \
|
||||
|
1
igmp.c
1
igmp.c
@ -13,4 +13,5 @@
|
||||
*/
|
||||
|
||||
/* TO BE IMPLEMENTED */
|
||||
/* cppcheck-suppress unusedFunction */
|
||||
__attribute__((__unused__)) static void unused(void) { }
|
||||
|
Loading…
Reference in New Issue
Block a user