Quantcast
Channel: EngineerZone : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 51060

Compiler warning cc0167

$
0
0

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


Viewing all articles
Browse latest Browse all 51060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>