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

it takes two to tango but MISRA and Keil do not

it takes two to tango but MISRA and Keil do not make good partners.

OK
I have the following
typedef signed char int8_t;
typedef unsigned char uint8_t;
the above to avoid depending on the compiler re (un)signed
typedef char mchar_t; // auxilary for MISRA and strcpy

Ok strcpy (xxx.....
gives no error if
char xxx....
mchar_t xxx.....
but gives rerror for both
int8_t xxx...
uint8_t xxx..

Parents
  • Nothing to do with either Keil or MISRA, actually.

    Passing either signed or unsigned char to a function working on plain char is wrong. At the very least, you have to apply a cast. And you may well have to instrument that cast (e.t. with a /*lint ... */ comment) to get it past a MISRA checker.

Reply
  • Nothing to do with either Keil or MISRA, actually.

    Passing either signed or unsigned char to a function working on plain char is wrong. At the very least, you have to apply a cast. And you may well have to instrument that cast (e.t. with a /*lint ... */ comment) to get it past a MISRA checker.

Children