diff options
author | David Robillard <d@drobilla.net> | 2022-07-14 14:24:01 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:41 -0400 |
commit | 3a0833614c629c907ae3d1eb170de714f3492fe5 (patch) | |
tree | 324c67000a1f47ed83d3727dc6c8c7e1d68a8947 | |
parent | e09a2bccd90d3666f2dd748a5ab6d5f105dd358c (diff) | |
download | jalv-3a0833614c629c907ae3d1eb170de714f3492fe5.tar.gz jalv-3a0833614c629c907ae3d1eb170de714f3492fe5.tar.bz2 jalv-3a0833614c629c907ae3d1eb170de714f3492fe5.zip |
Suppress new warnings in clang and clang-tidy 14
-rw-r--r-- | .clang-tidy | 5 | ||||
-rw-r--r-- | src/jalv.c | 2 | ||||
-rw-r--r-- | wscript | 1 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.clang-tidy b/.clang-tidy index 36b646f..a097be9 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -12,13 +12,11 @@ Checks: > -bugprone-macro-parentheses, -cert-dcl37-c, -cert-dcl51-cpp, + -cert-err33-c, -cert-err34-c, - -clang-analyzer-core.CallAndMessage, - -clang-analyzer-optin.cplusplus.VirtualCall, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -concurrency-mt-unsafe, -cppcoreguidelines-avoid-non-const-global-variables, - -cppcoreguidelines-macro-usage, -cppcoreguidelines-owning-memory, -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-reinterpret-cast, @@ -32,6 +30,7 @@ Checks: > -misc-no-recursion, -modernize-use-trailing-return-type, -readability-function-cognitive-complexity, + -readability-identifier-length, -readability-implicit-bool-conversion, -readability-non-const-parameter, -readability-static-accessed-through-instance, @@ -81,7 +81,7 @@ #endif #ifndef ARRAY_SIZE -# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) +# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #endif #ifndef MSG_BUFFER_SIZE @@ -54,6 +54,7 @@ def configure(conf): autowaf.add_compiler_flags(conf.env, 'c', { 'clang': [ '-Wno-bad-function-cast', + '-Wno-declaration-after-statement', '-Wno-missing-noreturn', ], 'gcc': [ |