We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9cfb8e commit 04c8ba2Copy full SHA for 04c8ba2
1 file changed
c/misra/test/rules/RULE-2-4/test.c
@@ -29,10 +29,10 @@ void test() {
29
int x = state1; // enum access on E1
30
enum E2 e2;
31
struct S7 { // NON_COMPLIANT
32
- int x
+ int x;
33
} s7;
34
struct S8 { // COMPLIANT
35
36
} s8;
37
struct S8 s8_2;
38
@@ -55,7 +55,7 @@ struct S10 { // NON_COMPLIANT
55
56
struct S12 { // COMPLIANT
57
int x;
58
-} foo(struct S12 s);
+} foo2(struct S12 s);
59
60
#define STRUCT_MACRO \
61
struct S13 { \
0 commit comments