Ignore advisory Misra 19.2: the union keyword should not be used

This commit is contained in:
Riccardo
2019-07-07 16:31:06 -07:00
parent e6dc4172b1
commit a4554e3e69
2 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
# Advisory: union types can be used
misra.19.2

View File

@@ -8,7 +8,7 @@ make -j4
cd ../../../
# panda code
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true
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
python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true
# violations in safety files
@@ -24,5 +24,5 @@ then
fi
# pedal code
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
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
python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true