Skip to content

Commit 54b2be5

Browse files
nwellnhofjgm
authored andcommitted
Disable DeprecatedOrUnsafeBufferHandling analyzer check
When compiling with C11 or later, this check suggests to use C11 Annex K functions like memcpy_s. These functions aren't widely supported. We will lose some warnings about really dangerous functions like sprintf, but this check doesn't offer more granularity, see llvm/llvm-project#64027.
1 parent db6c23a commit 54b2be5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ lint: $(BUILDDIR)
107107
for f in `ls src/*.[ch] | grep -v "scanners.c"` ; do \
108108
echo $$f ; \
109109
clang-tidy \
110-
-checks='clang-analyzer-*' \
110+
-checks='clang-analyzer-*,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling' \
111111
-header-filter='^build/.*' \
112112
-p=build \
113113
-warnings-as-errors='*' \

0 commit comments

Comments
 (0)