Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A3-9-1 - example with plain 'char' type
#2
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.
Reply


Messages In This Thread
RE: A3-9-1 - example with plain 'char' type - by kent.dorfman766 - 15-02-2023, 04:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)