Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CppUTest/include/CppUTestExt/MockSupport.h:40: error: default argument for ‘MockFailureReporter* failureReporterForThisCall’ has type ‘void*’ #2017

Closed
Bose90 opened this issue Mar 30, 2020 · 1 comment
Labels
solution: invalid the issue is not related to the library

Comments

@Bose90
Copy link

Bose90 commented Mar 30, 2020

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();

virtual void strictOrder();
virtual MockFunctionCall& expectOneCall(const SimpleString& functionName);
virtual MockFunctionCall& expectNCalls(int amount, const SimpleString& functionName);
virtual MockFunctionCall& actualCall(const SimpleString& functionName);
virtual bool hasReturnValue();
virtual MockNamedValue returnValue();
virtual int intReturnValue();
virtual const char* stringReturnValue();
virtual double doubleReturnValue();
virtual void* pointerReturnValue();
    etc etc......
@nickaein
Copy link
Contributor

Hi!

Like #2015, this is irrelevant to this library. If this is related to CppUTest library, you can report this issue to them.

@nlohmann nlohmann added the solution: invalid the issue is not related to the library label Apr 4, 2020
@nlohmann nlohmann closed this as completed Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: invalid the issue is not related to the library
Projects
None yet
Development

No branches or pull requests

3 participants