15-02-2023, 04:43 AM
I could be offbase but I believe the reason for the "plain char" rules is that text strings made of plain char could occupy different cell sizes on a platform by platform basis. It woudln't make sense to require int8 if int8 wasn't the native char size on machine XYZ.
So, while according to A3-9-1, char is noncompliant, IMHO, it is a necessity and an example of one of many AUTOSAR rules that seemingly contradict each other. I would mark it as a flagged excpetion or disable the warning, and move along.
So, while according to A3-9-1, char is noncompliant, IMHO, it is a necessity and an example of one of many AUTOSAR rules that seemingly contradict each other. I would mark it as a flagged excpetion or disable the warning, and move along.