#include <ccspec/core/formatter.h>

namespace ccspec {
namespace core {

using std::exception_ptr;
using std::list;
using std::ostream;

// public methods.

void Formatter::examplePassed(const ExecutionResult&) const {}

void Formatter::exampleFailed(const ExecutionResult&) const {}

void Formatter::afterEachHookFailed(exception_ptr) const {}

void Formatter::aroundHookFailed(exception_ptr) const {}

void Formatter::startDump() const {}

void Formatter::dumpFailures(const list<exception_ptr>&) const {}

// Protected methods.

Formatter::Formatter(ostream& output) : output_(output) {}

} // namespace core
} // namespace ccspec

#include <ccspec/core/formatter.h>

namespace ccspec {
namespace core {

using std::exception_ptr;
using std::list;
using std::ostream;

// public methods.

void Formatter::examplePassed(const ExecutionResult& execution_result) const {
    (void) execution_result;
}

void Formatter::exampleFailed(const ExecutionResult& execution_result) const {
    (void) execution_result;
}

void Formatter::afterEachHookFailed(exception_ptr failure) const {
    (void) failure;
}

void Formatter::aroundHookFailed(exception_ptr failure) const {
    (void) failure;
}

void Formatter::startDump() const {}

void Formatter::dumpFailures(const list<exception_ptr>& failures) const {
    (void) failures;
}

// Protected methods.

Formatter::Formatter(ostream& output) : output_(output) {}

} // namespace core
} // namespace ccspec

--- 
+++ 
@@ -9,27 +9,17 @@
 
 // public methods.
 
-void Formatter::examplePassed(const ExecutionResult& execution_result) const {
-    (void) execution_result;
-}
+void Formatter::examplePassed(const ExecutionResult&) const {}
 
-void Formatter::exampleFailed(const ExecutionResult& execution_result) const {
-    (void) execution_result;
-}
+void Formatter::exampleFailed(const ExecutionResult&) const {}
 
-void Formatter::afterEachHookFailed(exception_ptr failure) const {
-    (void) failure;
-}
+void Formatter::afterEachHookFailed(exception_ptr) const {}
 
-void Formatter::aroundHookFailed(exception_ptr failure) const {
-    (void) failure;
-}
+void Formatter::aroundHookFailed(exception_ptr) const {}
 
 void Formatter::startDump() const {}
 
-void Formatter::dumpFailures(const list<exception_ptr>& failures) const {
-    (void) failures;
-}
+void Formatter::dumpFailures(const list<exception_ptr>&) const {}
 
 // Protected methods.
 
Remove formal parameters to avoid complier warning

The compiler warning for unused variables can be avoided by leaving out
the formal parameters instead of doing a void cast no-op.
