Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule8.9 applicability to const ?
#2
Your code as described does violate rule 8.9 since a global object is only used within one function and could therefore be declared in that function.

However, the MISRA working group understands why you might want to list all your implementation specific constants in one place. In that case we suggest that you disapply this advisory rule for implementation specific constants and document the reason for doing it.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread
RE: Rule8.9 applicability to const ? - by misra-c - 27-11-2021, 11:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)