I have the following code line:
typedef P2FUNC(Std_ReturnType, APP1, GetData) (P2VAR(max_data, AUTOMATIC, APP2)
whereby P2FUNC and P2VAR is a compiler Macro:
#define P2FUNC(rettype, ptrclass, fctname) rettype (*fctname)
#define P2VAR(ptrtype, memclass, ptrclass) ptrtype *
and max_data is defined as:
typedef uint8 max_data[];
The compiler gives me the following error:
error: parameter '<anonymous>' includes pointer to array of unknown bound 'max_data {aka unsigned char []}'
This .h files is included within a .cpp file within an extern"C"{ ...declaration.
My question now is, it is possible to disable this error message for this specific case? According some specific standard, this situation has it's own reason regarding the undetermined size of array.
I'm compiling with g++ compiler. Will be thankful for help.