mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Quiet clang-tidy on macOS
This commit is contained in:
parent
4da76e0e7d
commit
7903b40066
|
@ -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-*,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue