Skip to content

Commit a4554e3

Browse files
committed
Ignore advisory Misra 19.2: the union keyword should not be used
1 parent e6dc417 commit a4554e3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/misra/suppressions.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Advisory: union types can be used
2+
misra.19.2

tests/misra/test_misra.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ make -j4
88
cd ../../../
99

1010
# panda code
11-
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true
11+
tests/misra/cppcheck/cppcheck --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true
1212
python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true
1313

1414
# violations in safety files
@@ -24,5 +24,5 @@ then
2424
fi
2525

2626
# pedal code
27-
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
27+
tests/misra/cppcheck/cppcheck --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
2828
python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true

0 commit comments

Comments
 (0)