AnsweredAssumed Answered

Compiler warning cc0167

Question asked by Greenmaze on Aug 15, 2014
Latest reply on Aug 20, 2014 by AndyK2

This question applies to both VisualDSP++ and CCES.

 

I'm trying to understand why the Blackfin compiler gives me a cc0167 warning for the following situation.

 

typedef int test_type[5];

 

...

 

void foo(const test_type * ptr) {}

 

...

 

test_type data;

foo( &data );

 

When compiled I get the following error:

 

cc0167: {D} warning: argument of type

          "test_type *" is incompatible with parameter of type

          "const test_type *"

          foo( &data );

Outcomes