From fb15259205c006149fc0bedbf4ef135e53c4268e Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 28 Sep 2022 14:33:24 +1000 Subject: cppcheck: Use inline suppression for ffsl() We define our own ffsl() as a weak symbol, in case our C library doesn't include it. On glibc systems which *do* include it, this causes a cppcheck warning because unsurprisingly our version doesn't pick the same argument names. Convert the suppression for this into an inline suppression. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- Makefile | 2 -- 1 file changed, 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e0933f3..d5bfce4 100644 --- a/Makefile +++ b/Makefile @@ -290,7 +290,6 @@ cppcheck: $(SRCS) $(HEADERS) --suppress=strtokCalled:conf.c --suppress=strtokCalled:qrap.c \ --suppress=localtimeCalled:pcap.c \ --suppress=unusedStructMember:pcap.c \ - --suppress=funcArgNamesDifferent:util.h \ --suppress=unusedStructMember:dhcp.c \ \ --suppress=unmatchedSuppression:conf.c \ @@ -300,6 +299,5 @@ cppcheck: $(SRCS) $(HEADERS) --suppress=unmatchedSuppression:tcp.c \ --suppress=unmatchedSuppression:udp.c \ --suppress=unmatchedSuppression:util.c \ - --suppress=unmatchedSuppression:util.h \ $(filter -D%,$(FLAGS) $(CFLAGS)) \ . -- cgit v1.2.3