mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-29 21:37:32 +00:00
Suppress clang-tidy warnings for uses of bzero()
The only uses of bzero() in the maiko sources come about because it is used in the macOS definition of the FD_ZERO() macro in sys/select.h. Suppress the warning by including -clang-analyzer-security.insecureAPI.bzero in the clang-tidy list of checks. This may well have been replaced by a memset() call in more up-to-date macOS releases.
This commit is contained in:
@@ -26,7 +26,7 @@ IF (CLANG_TIDY_EXE)
|
|||||||
# There are many many warnings for strcpy instances to deal with,
|
# There are many many warnings for strcpy instances to deal with,
|
||||||
# but suppress it for now so that other issues are more obvious
|
# but suppress it for now so that other issues are more obvious
|
||||||
#
|
#
|
||||||
SET(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_EXE} -checks=-*,cert-*,clang-analyzer-security.*,-clang-analyzer-security.insecureAPI.strcpy -header-filter=.*)
|
SET(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_EXE} -checks=-*,cert-*,clang-analyzer-security.*,-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-security.insecureAPI.bzero -header-filter=.*)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE(CheckLibraryExists)
|
INCLUDE(CheckLibraryExists)
|
||||||
|
|||||||
Reference in New Issue
Block a user