aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-01-13 14:54:15 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-01-14 01:07:51 +0100
commit4296a59034b0ebe805221d02554477b899ac9fb3 (patch)
tree18c6d2bde3d7452334c9b18b110ca59de263ba73
parentfa765d54b048127c77e0699843f4008b026a0e9f (diff)
downloadpasst-4296a59034b0ebe805221d02554477b899ac9fb3.tar
passt-4296a59034b0ebe805221d02554477b899ac9fb3.tar.gz
passt-4296a59034b0ebe805221d02554477b899ac9fb3.tar.bz2
passt-4296a59034b0ebe805221d02554477b899ac9fb3.tar.lz
passt-4296a59034b0ebe805221d02554477b899ac9fb3.tar.xz
passt-4296a59034b0ebe805221d02554477b899ac9fb3.tar.zst
passt-4296a59034b0ebe805221d02554477b899ac9fb3.zip
igmp: Remove apparently unneeded suppressionHEADmaster
cppcheck-2.19.1 complains that the unusedFunction suppression in igmp.c doesn't match. That seems like a cppcheck bug, because the function clearly *is* unused. The function exists because otherwise the compiler fails because "ISO C forbids an empty translation unit". mld.c contains an identical unused definition for the same reason, but without the suppression. It doesn't seem to have caused unusedFunction warnings, so maybe cppcheck counts the non-empty translation unit requirement as a "use" of the function? In any case, since omitting the suppression in mld.c seems to be fine, do the same in igmp.c to stop the complaints. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--igmp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/igmp.c b/igmp.c
index 0e77584..a3971fc 100644
--- a/igmp.c
+++ b/igmp.c
@@ -13,5 +13,4 @@
*/
/* TO BE IMPLEMENTED */
-/* cppcheck-suppress unusedFunction */
__attribute__((__unused__)) static void unused(void) { }