Skip to content

Commit

Permalink
enable misra-c2012-2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Jun 8, 2024
1 parent fb2788d commit d99c651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/misra/suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ unusedFunction:*/interrupt_handlers*.h
# all of the below suppressions are from new checks introduced after updating
# cppcheck from 2.5 -> 2.13. they are listed here to separate the update from
# fixing the violations and all are intended to be removed soon after
misra-c2012-2.5 # unused macros. a few legit, rest aren't common between F4/H7 builds. should we do this in the unusedFunction pass?
misra-c2012-8.7
misra-c2012-8.4
misra-c2012-21.15
Expand Down
2 changes: 2 additions & 0 deletions tests/misra/test_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
]

patterns = [
# misra-c2012-2.5
"$a #define TEST_2_5 1\n",
# misra-c2012-13.3
"$a void test(int tmp) { int tmp2 = tmp++ + 2; if (tmp2) {;}}",
# misra-c2012-13.4
Expand Down

0 comments on commit d99c651

Please sign in to comment.