From 627e18fa8ad000ed92405cff3a88c36fd5f3027e Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Oct 2021 09:41:13 +0200 Subject: 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 --- test/build/static_checkers | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/build') diff --git a/test/build/static_checkers b/test/build/static_checkers index 6e080b4..d18dea8 100644 --- a/test/build/static_checkers +++ b/test/build/static_checkers @@ -11,8 +11,12 @@ # Copyright (c) 2021 Red Hat GmbH # Author: Stefano Brivio -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 ] -- cgit v1.2.3