Disable tidy DeprecatedOrUnsafeBufferHandling check
This check is disabled in global default, see build/soong/cc/config/tidy.go. This bpf_defaults is used to compile an external/bcc module. Unless all such warnings can be fixed in the external/bcc source, we should not enable this check locally. Test: presubmit; make tidy-external-bcc_subset Change-Id: I97f6dd944dfb21fed664175c5c7eec02c10ebe4c
This commit is contained in:
parent
4fba4f7a22
commit
ef3f44b639
1 changed files with 2 additions and 1 deletions
|
@ -28,9 +28,10 @@ cc_defaults {
|
|||
tidy_checks: [
|
||||
"android-*",
|
||||
"cert-*",
|
||||
"clang-analyzer-security*",
|
||||
"-cert-err34-c",
|
||||
"clang-analyzer-security*",
|
||||
// Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning.
|
||||
"-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling",
|
||||
// Disabling due to many unavoidable warnings from POSIX API usage.
|
||||
"-google-runtime-int",
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue