misra; fix test_rules_suppression

This commit is contained in:
Daniel Marjamäki 2021-09-17 08:23:48 +02:00
parent c296115cd3
commit b6abe9c5fe
2 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,8 @@ struct misra_5_2_field_hides_field__63y { //5.2
int misra_5_2_field_hides_field1_31x;
int misra_5_2_field_hides_field1_31y;//5.2
};
const char *s41_1 = "\x41g"; // 4.1
const char *s41_2 = "\x41\x42";
const char *s41_1 = "\x41g"; // 4.1 8.4
const char *s41_2 = "\x41\x42"; // 8.4
// cppcheck-suppress misra-c2012-5.7
struct misra_5_7_violation_t {

View File

@ -5,4 +5,5 @@ misra-c2012-8.4:*/misra-suppressions1-test.c
misra-c2012-16.4:*/misra-suppressions1-test.c
misra-c2012-16.6:*/misra-suppressions1-test.c
misra-c2012-4.1:*/misra-suppressions2-test.c
misra-c2012-8.4:*/misra-suppressions2-test.c
misra-c2012-19.2:*/misra-suppressions2-test.c