Makefile: Suppress unusedStructMember Cppcheck warning in dhcp.c
New from Cppcheck 2.8: all the fields of struct msg that are not directly manipulated are now reported as unused, which is kind of correct as those fields are used as a blob "copied" from request to response and not as separate fields. However, keeping the message composition explicit is probably desirable, and adding inline suppressions makes the whole thing rather unreadable, so just suppress unusedStructMember warnings for dhcp.c, while also adding a suppression for unmatched suppressions to keep earlier versions of Cppcheck happy. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
41c02e10db
commit
721fa1bf5d
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -259,8 +259,10 @@ cppcheck: $(wildcard *.c) $(wildcard *.h)
|
||||||
--suppress=localtimeCalled:pcap.c \
|
--suppress=localtimeCalled:pcap.c \
|
||||||
--suppress=unusedStructMember:pcap.c \
|
--suppress=unusedStructMember:pcap.c \
|
||||||
--suppress=funcArgNamesDifferent:util.h \
|
--suppress=funcArgNamesDifferent:util.h \
|
||||||
|
--suppress=unusedStructMember:dhcp.c \
|
||||||
\
|
\
|
||||||
--suppress=unmatchedSuppression:conf.c \
|
--suppress=unmatchedSuppression:conf.c \
|
||||||
|
--suppress=unmatchedSuppression:dhcp.c \
|
||||||
--suppress=unmatchedSuppression:passt.c \
|
--suppress=unmatchedSuppression:passt.c \
|
||||||
--suppress=unmatchedSuppression:pcap.c \
|
--suppress=unmatchedSuppression:pcap.c \
|
||||||
--suppress=unmatchedSuppression:qrap.c \
|
--suppress=unmatchedSuppression:qrap.c \
|
||||||
|
|
Loading…
Reference in a new issue