aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-14 14:24:01 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:50:41 -0400
commit3a0833614c629c907ae3d1eb170de714f3492fe5 (patch)
tree324c67000a1f47ed83d3727dc6c8c7e1d68a8947
parente09a2bccd90d3666f2dd748a5ab6d5f105dd358c (diff)
downloadjalv-3a0833614c629c907ae3d1eb170de714f3492fe5.tar.gz
jalv-3a0833614c629c907ae3d1eb170de714f3492fe5.tar.bz2
jalv-3a0833614c629c907ae3d1eb170de714f3492fe5.zip
Suppress new warnings in clang and clang-tidy 14
-rw-r--r--.clang-tidy5
-rw-r--r--src/jalv.c2
-rw-r--r--wscript1
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,
diff --git a/src/jalv.c b/src/jalv.c
index aa782b3..1e937f4 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -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
diff --git a/wscript b/wscript
index 0bb218b..e78baf2 100644
--- a/wscript
+++ b/wscript
@@ -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': [