I have a method
int someMethod(int arg1, int arg2)
{
//method body
}
and I have a macro defined say _MACRO
for the same method so as to execute it based on the condition.
#ifdef _MACRO
int someMethod(int arg1, int agr2)
{
//method body
}
#endif
I am using this someMethod
in say someAnotherMethod(int arg1, int arg2)
int someAnotherMethod(int arg1, int arg2)
{
//othercode
#ifdef __MACRO
someMethod(int arg1, int agr2);
//othercode
}
I get an error for the same in someAnotherMethod().
error C4100: 'arg1' : unreferenced formal parameter
Can anyone explain this thing and provide an alternative approach?