summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-17 07:32:58 -0400
committerDavid Robillard <d@drobilla.net>2024-07-18 17:29:04 -0400
commitf8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff (patch)
treee5adbb0f0c61dc3a62748590ded77f10d5a9ee00
parentb2d78db908f35d963c84bcbe697f9cf9943019a8 (diff)
downloadraul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.tar.gz
raul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.tar.bz2
raul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.zip
Remove redundant member initialization
I guess we'll side with clang-tidy on this one, over the somewhat notorious Weffc++.
-rw-r--r--meson.build1
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/ringbuffer_test.cpp2
3 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 7c5ede6..274147d 100644
--- a/meson.build
+++ b/meson.build
@@ -57,6 +57,7 @@ elif cpp.get_id() == 'gcc'
if warning_level == 'everything'
cpp_suppressions += [
'-Wno-abi-tag',
+ '-Wno-effc++',
'-Wno-inline',
'-Wno-multiple-inheritance',
'-Wno-padded',
diff --git a/test/.clang-tidy b/test/.clang-tidy
index cee9dd2..ed0bf6b 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -11,5 +11,4 @@ Checks: >
-hicpp-signed-bitwise,
-modernize-make-unique,
-readability-function-cognitive-complexity,
- -readability-redundant-member-init,
InheritParentConfig: true
diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp
index 67b740f..59529e8 100644
--- a/test/ringbuffer_test.cpp
+++ b/test/ringbuffer_test.cpp
@@ -22,7 +22,7 @@ namespace {
using RingBuffer = raul::RingBuffer;
struct Context {
- std::unique_ptr<RingBuffer> ring{};
+ std::unique_ptr<RingBuffer> ring;
size_t n_writes{0};
};