This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Misbehaving CCS4 compiler ?

Hello Forum,

recently i came across a strange behaviour to that I want a comment please.

Environment: CCS4 under WinXP for C2000

 

I have a main.c with some global variables defined there like:

Uint16   Variable1;

enum { ..., A, B, ... } Variable2;

 

Both variables are reused in a file subroutines.c.

I did there the follwing mistake:

extern Uint32    Variable1; (- instead of Uint16)

extern enum {  ..., B, A, ...} Variable2; (- instead of A,B)

 

CCS4 silently compiled several times ignoring the mismatches until I found the difference using the debugger.

I retested that again and the compiler still does not show any errors or warnings.

 

Is this intentionally or are there any compilerflags to find such inconsistencies?

 

rgds

FJ