Skip to content

Commit

Permalink
Fix test.c format
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRFairhurst committed Oct 4, 2024
1 parent 3adf181 commit 31dc8bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
| test.c:57:3:57:8 | call to ungetc | Call to banned function ungetc. |
| test.c:60:3:60:7 | call to fread | Call to banned function fread. |
| test.c:62:3:62:8 | call to ungetc | Call to banned function ungetc. |
| test.c:55:3:55:8 | call to ungetc | Call to banned function ungetc. |
| test.c:58:3:58:7 | call to fread | Call to banned function fread. |
| test.c:60:3:60:8 | call to ungetc | Call to banned function ungetc. |
8 changes: 3 additions & 5 deletions c/misra/test/rules/RULE-1-5/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ extern int g5; // NON-COMPLIANT
void f2(); // NON-COMPLIANT
void f3(void); // COMPLIANT

void f4(int p1) {}; // COMPLIANT
int f5(x) // NON_COMPLIANT
void f4(int p1){}; // COMPLIANT
int f5(x) // NON_COMPLIANT
int x;
{
return 1;
}
{ return 1; }

// Rule 21.6 covers the below cases:
void f6(void) {
Expand Down

0 comments on commit 31dc8bc

Please sign in to comment.