Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shall Rule 21.1 apply to the both paths of conditional preprocessing
#2
The MISRA C Glossary defines Code as:

"Code consists of everything within a translation unit that is not excluded by conditional compilation"

As such, reporting violations in active code is the requirement.

Reporting violations in inactive code is not always appropriate, as that code may not compile-able due to other considerations.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)