This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

no warning if automatic casting to basic data types of smaller size

Hello,

I really miss a warning message from the compiler, if I cast Basic data types to types of smaller size.
Is there an option to enable warnings for implicit casting?

//ARM Compiler v5.05
volatile char character; // 8-bit
volatile int integer;    // 32-bit

integer = 1000;
character = integer; // implicit casting to a type of wider length, I do not get a warning

0