CppUTest/include/CppUTestExt/MockSupport.h:40: error: default argument for ‘MockFailureReporter* failureReporterForThisCall’ has type ‘void*’ #2017
Labels
solution: invalid
the issue is not related to the library
I am trying to compile TestCases for my project code and getting below errors:
CppUTest/include/CppUTestExt/MockSupport.h:40: error: default argument for ‘MockFailureReporter* failureReporterForThisCall’ has type ‘void*’
Function Prototype:
MockSupport& mock(const SimpleString& mockName = "", MockFailureReporter* failureReporterForThisCall = NULL);
Defination:
MockSupport& mock(const SimpleString& mockName, MockFailureReporter* failureReporterForThisCall)
{
MockSupport& mock_support = (mockName != "") ? *global_mock.getMockSupportScope(mockName) : global_mock;
mock_support.setActiveReporter(failureReporterForThisCall);
return mock_support;
}
MockSupport::MockSupport()
: strictOrdering_(false), standardReporter_(&defaultReporter_), ignoreOtherCalls_(false), enabled_(true), lastActualFunctionCall_(NULL), tracing_(false)
{
setActiveReporter(NULL);
}
MockSupport::~MockSupport()
{
}
Class :
class MockSupport
{
public:
MockSupport();
virtual ~MockSupport();
The text was updated successfully, but these errors were encountered: