From 608295e03ff2ea119a19b44f6b002a60ab52c21f Mon Sep 17 00:00:00 2001 From: Patrick Grimm Date: Sun, 27 Oct 2024 02:25:12 +0200 Subject: [PATCH] cppcheck suppress nullPointer for secure_connect.c --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 2be5a3a483..8d4d65bf85 100644 --- a/Makefile +++ b/Makefile @@ -388,6 +388,11 @@ CPPCHECK_OPTIONS += -DBACNET_STACK_DEPRECATED #CPPCHECK_OPTIONS += -I./src #CPPCHECK_OPTIONS += --enable=information --check-config CPPCHECK_OPTIONS += --error-exitcode=1 +# secure_connect.c +# false positive cppcheck - snprintf allows null pointers +CPPCHECK_OPTIONS += --suppress=nullPointer +CPPCHECK_OPTIONS += --suppress=ctunullpointer +CPPCHECK_OPTIONS += --suppress=nullPointerRedundantCheck .PHONY: cppcheck cppcheck: cppcheck $(CPPCHECK_OPTIONS) --quiet --force ./src/