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
4040void f2 (); // NON-COMPLIANT
4141void f3 (void ); // COMPLIANT
4242
43- void f4 (int p1 ) {}; // COMPLIANT
44- int f5 (x ) // NON_COMPLIANT
43+ void f4 (int p1 ){}; // COMPLIANT
44+ int f5 (x ) // NON_COMPLIANT
4545int x ;
46- {
47- return 1 ;
48- }
46+ { return 1 ; }
4947
5048// Rule 21.6 covers the below cases:
5149void f6 (void ) {
You can’t perform that action at this time.
0 commit comments