Quiet clang-tidy on macOS

This commit is contained in:
Dennis Felsing 2022-01-23 19:04:01 +01:00
parent 4da76e0e7d
commit 7903b40066
2 changed files with 3 additions and 1 deletions

View file

@ -30,7 +30,9 @@ Checks: >
clang-analyzer-*, clang-analyzer-*,
-clang-analyzer-optin.cplusplus.UninitializedObject, -clang-analyzer-optin.cplusplus.UninitializedObject,
-clang-analyzer-optin.cplusplus.VirtualCall, -clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
-clang-analyzer-optin.performance.Padding, -clang-analyzer-optin.performance.Padding,
-clang-analyzer-osx.cocoa.RetainCount,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-security.insecureAPI.rand, -clang-analyzer-security.insecureAPI.rand,
misc-*, misc-*,

View file

@ -2440,7 +2440,7 @@ int net_socket_read_wait(NETSOCKET sock, int time)
tv.tv_usec = time % 1000000; tv.tv_usec = time % 1000000;
sockid = 0; sockid = 0;
FD_ZERO(&readfds); FD_ZERO(&readfds); // NOLINT(clang-analyzer-security.insecureAPI.bzero)
if(sock.ipv4sock >= 0) if(sock.ipv4sock >= 0)
{ {
FD_SET(sock.ipv4sock, &readfds); FD_SET(sock.ipv4sock, &readfds);