catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Remove unused parameter from listReporters()
- Commit
b7f41237b1329ac3f7119beedc47c9b9f924571e- Author
- Maciej Patro ·
- Committer
- Martin Hořeňovský
- Parents
1faccd601d90
Changes
include/internal/catch_list.cpp | 4 ++-- include/internal/catch_list.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/internal/catch_list.cpp b/include/internal/catch_list.cpp index 3b0e33f1..6010ec15 100644 --- a/include/internal/catch_list.cpp +++ b/include/internal/catch_list.cpp @@ -124,7 +124,7 @@ namespace Catch { return tagCounts.size(); } - std::size_t listReporters( Config const& /*config*/ ) { + std::size_t listReporters() { Catch::cout() << "Available reporters:\n"; IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories(); std::size_t maxNameLen = 0; @@ -155,7 +155,7 @@ namespace Catch { if( config.listTags() ) listedCount = listedCount.valueOr(0) + listTags( config ); if( config.listReporters() ) - listedCount = listedCount.valueOr(0) + listReporters( config ); + listedCount = listedCount.valueOr(0) + listReporters(); return listedCount; } diff --git a/include/internal/catch_list.h b/include/internal/catch_list.h index 4bc96ec5..bd29d970 100644 --- a/include/internal/catch_list.h +++ b/include/internal/catch_list.h @@ -29,7 +29,7 @@ namespace Catch { std::size_t listTags( Config const& config ); - std::size_t listReporters( Config const& /*config*/ ); + std::size_t listReporters(); Option<std::size_t> list( Config const& config );