Skip to content

Commit

Permalink
cppcheck suppress nullPointer for secure_connect.c
Browse files Browse the repository at this point in the history
  • Loading branch information
stargieg committed Oct 27, 2024
1 parent 2b7df00 commit 608295e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 608295e

Please sign in to comment.