Skip to content

Commit a07448d

Browse files
authored
Merge pull request #456 from jketema/typo-fix
Fix typo in one of the alert messages from RULE-8-2
2 parents d79970f + 7e0e04e commit a07448d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

c/misra/src/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ where
4545
msg = "Function " + f + " declares parameter that is unnamed."
4646
or
4747
hasZeroParamDecl(f) and
48-
msg = "Function " + f + " does not specifiy void for no parameters present."
48+
msg = "Function " + f + " does not specify void for no parameters present."
4949
or
5050
//parameters declared in declaration list (not in function signature)
5151
//have placeholder file location associated only
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| test.c:3:6:3:7 | f1 | Function f1 declares parameter that is unnamed. |
2-
| test.c:4:6:4:7 | f2 | Function f2 does not specifiy void for no parameters present. |
3-
| test.c:5:6:5:7 | f3 | Function f3 does not specifiy void for no parameters present. |
2+
| test.c:4:6:4:7 | f2 | Function f2 does not specify void for no parameters present. |
3+
| test.c:5:6:5:7 | f3 | Function f3 does not specify void for no parameters present. |
44
| test.c:7:5:7:6 | f5 | Function f5 declares parameter in unsupported declaration list. |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| test.c:3:6:3:7 | f1 | Function f1 declares parameter that is unnamed. |
2-
| test.c:4:6:4:7 | f2 | Function f2 does not specifiy void for no parameters present. |
2+
| test.c:4:6:4:7 | f2 | Function f2 does not specify void for no parameters present. |
33
| test.c:7:5:7:6 | f5 | Function f5 declares parameter in unsupported declaration list. |

0 commit comments

Comments
 (0)