I am using Renesas compiler to compile some.c file. In some.c file, I define array variable fdd_types. This fdd_types array is externed in a header file which is included in some.c file. So I have declared the variable only once. Why does compiler give following information that there is prior identical declaration.
Also, in the same header file there are some macros that have this variable. One of the macros is as follows:
#define fdd_write( dev, addr, \
data, len, mode ) \
(fdd_types[(dev)].write((addr), (data), (len), (mode)))
This macro is not called in the some.c file. It is called from some other .c file.
The information message from compiler is as follows:
"..\..\..\src\lib\fdd_b4m1i2\..\fdd\fdd_types.c", line 205: information: fdd_typ
es: prior identical declaration -- ignored
Please advise. Thanks.