File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
c/misra/test/rules/RULE-1-5 Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- | test.c:57 :3:57 :8 | call to ungetc | Call to banned function ungetc. |
2
- | test.c:60 :3:60 :7 | call to fread | Call to banned function fread. |
3
- | test.c:62 :3:62 :8 | call to ungetc | Call to banned function ungetc. |
1
+ | test.c:55 :3:55 :8 | call to ungetc | Call to banned function ungetc. |
2
+ | test.c:58 :3:58 :7 | call to fread | Call to banned function fread. |
3
+ | test.c:60 :3:60 :8 | call to ungetc | Call to banned function ungetc. |
Original file line number Diff line number Diff line change @@ -40,12 +40,10 @@ extern int g5; // NON-COMPLIANT
40
40
void f2 (); // NON-COMPLIANT
41
41
void f3 (void ); // COMPLIANT
42
42
43
- void f4 (int p1 ) {}; // COMPLIANT
44
- int f5 (x ) // NON_COMPLIANT
43
+ void f4 (int p1 ){}; // COMPLIANT
44
+ int f5 (x ) // NON_COMPLIANT
45
45
int x ;
46
- {
47
- return 1 ;
48
- }
46
+ { return 1 ; }
49
47
50
48
// Rule 21.6 covers the below cases:
51
49
void f6 (void ) {
You can’t perform that action at this time.
0 commit comments