mirror of
https://passt.top/passt
synced 2025-06-03 22:45:35 +02:00
passt: Add cppcheck target, test, and address resulting warnings
...mostly false positives, but a number of very relevant ones too, in tcp_get_sndbuf(), tcp_conn_from_tap(), and siphash PREAMBLE(). Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
c3f8e4d2cd
commit
627e18fa8a
17 changed files with 159 additions and 118 deletions
test/build
|
@ -11,8 +11,12 @@
|
|||
# Copyright (c) 2021 Red Hat GmbH
|
||||
# Author: Stefano Brivio <sbrivio@redhat.com>
|
||||
|
||||
htools clang-tidy
|
||||
htools clang-tidy cppcheck
|
||||
|
||||
test Run clang-tidy
|
||||
hout RET make clang-tidy; echo $?
|
||||
check [ __RET__ -eq 0 ]
|
||||
|
||||
test Run cppcheck
|
||||
hout RET make cppcheck; echo $?
|
||||
check [ __RET__ -eq 0 ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue