diff --git a/tests/registry.cpp b/tests/registry.cpp
index 9f72327258feaefa9c34491a43aa8bc0032d4a2b..0c581bc02f5f23b4c9f0e05eadfff433f2bb2188 100644
--- a/tests/registry.cpp
+++ b/tests/registry.cpp
@@ -33,7 +33,7 @@ TEST_CASE("apply_all"
     spdlog::register_logger(logger2);
 
     int counter = 0;
-    spdlog::apply_all([&counter](std::shared_ptr<spdlog::logger> ) { counter++; });
+    spdlog::apply_all([&counter](std::shared_ptr<spdlog::logger>) { counter++; });
     REQUIRE(counter == 2);
 
     counter = 0;