diff options
author | David Robillard <d@drobilla.net> | 2023-02-03 14:32:33 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-03 18:54:39 -0500 |
commit | 803be790d97a0bd219e15dbe2c9483f33af5877c (patch) | |
tree | 6975d1de2283188a651a334a98d67ab131b8e949 /test/cpp | |
parent | af5d95877af889ae40f76bda36f61f8fb7ab2a24 (diff) | |
download | lilv-803be790d97a0bd219e15dbe2c9483f33af5877c.tar.gz lilv-803be790d97a0bd219e15dbe2c9483f33af5877c.tar.bz2 lilv-803be790d97a0bd219e15dbe2c9483f33af5877c.zip |
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/.clang-tidy | 1 | ||||
-rw-r--r-- | test/cpp/test_lilv_hpp.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/.clang-tidy b/test/cpp/.clang-tidy index 8e5e749..5d20fa0 100644 --- a/test/cpp/.clang-tidy +++ b/test/cpp/.clang-tidy @@ -12,6 +12,7 @@ Checks: > -hicpp-no-array-decay, -misc-non-private-member-variables-in-classes, -modernize-return-braced-init-list, + -modernize-use-nodiscard, -modernize-use-trailing-return-type, -readability-implicit-bool-conversion, HeaderFilterRegex: '.*/lilvmm\.hpp' diff --git a/test/cpp/test_lilv_hpp.cpp b/test/cpp/test_lilv_hpp.cpp index 57cbda1..7e6de72 100644 --- a/test/cpp/test_lilv_hpp.cpp +++ b/test/cpp/test_lilv_hpp.cpp @@ -6,7 +6,7 @@ int main() { - Lilv::World world{}; + const Lilv::World world{}; return 0; } |