I encounter a polyspace violation of MISRA C:2012 1.1 Too many macro definitions have. How to know which macros it is referring to ?
Show older comments
MISRA C:2012 1.1 (Required)
The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits.
Too many macro definitions have been found in this translation unit: 5034. The limit is 4095.
I encounter this violation with Polyspace bug finder. This violation is shown in CPUComm.c and Main.c . However, when i count the number of macros it is definitely a lot lower than 5034. Is there any other .h or .c it is referring to for the macros ? How do we know which files we need to search and how do we solve it ?

The main.c has a lot of header files. Do we need to also consider those to search for macros ?

Accepted Answer
More Answers (0)
Categories
Find more on MISRA C++:2008 Rules in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!