I'm trying to compile an existed project (which was designed for gcc) with armcc. For some reason I get the #119 error for the following casting:
(keyCert)(pCertHeader->flags)
I find it very odd because the flags variable is from type uint32_t, and keyCert type is actually uint32_t.
typedef union {
struct {
uint32_t a:4;
uint32_t b:28;
}c;
uint32_t d;
} keyCert;
What could be the reason for this behavior? Note that I was able to compile it with gcc. Thanks!