Hello Community,
I am doing not that much with CCS but with other compilers.
Now I have a silly question:
Why does the following code give no warnings/errors/remaks - nothing?
int main(void) {
int test16;
long long test32 = 0xFFFFFFFF;
test16 = test32;
test16 = test16;
return 0;
}
I think If a 32 bit value is written to an 16 bit value the compiler has to warn me by default. I also have not figured out how to tell the compiler to do this. I dont want to use misra. Or do I have to use it in CCS?
Could anyone please explain me this behavior?
Thanks,
Joachim