From df04ca05d50928548e5fcd847148cd8c7e843741 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 10:49:09 -0400 Subject: Avoid return with void value --- src/.clang-tidy | 1 - src/Serialiser.cpp | 2 +- src/server/JackDriver.hpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/.clang-tidy b/src/.clang-tidy index 13a97efc..32352d76 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -27,7 +27,6 @@ Checks: > -hicpp-no-malloc, -misc-no-recursion, -misc-unused-parameters, - -readability-avoid-return-with-void-value, -readability-function-cognitive-complexity, -readability-redundant-casting, -readability-use-anyofallof, diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index 27b3c071..02f0c6e8 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -514,7 +514,7 @@ void Serialiser::serialise_arc(const Sord::Node& parent, const std::shared_ptr& arc) { - return me->serialise_arc(parent, arc); + me->serialise_arc(parent, arc); } void diff --git a/src/server/JackDriver.hpp b/src/server/JackDriver.hpp index 3f0e28dc..bd1b3477 100644 --- a/src/server/JackDriver.hpp +++ b/src/server/JackDriver.hpp @@ -118,7 +118,7 @@ private: // Static JACK callbacks which call the non-static callbacks (methods) static void shutdown_cb(void* const jack_driver) { - return static_cast(jack_driver)->_shutdown_cb(); + static_cast(jack_driver)->_shutdown_cb(); } static int process_cb(jack_nframes_t nframes, void* const jack_driver) { -- cgit v1.2.1