Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a653b9

Browse files
committed
[CPP-340] Fix TooFewArguments.c to actually provide a ()-prototype.
1 parent 59a54df commit 8a653b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
2-
void one_argument(int x);
1+
void one_argument();
32

43
void calls() {
54
one_argument(1); // GOOD: `one_argument` will accept and use the argument
65

76
one_argument(); // BAD: `one_argument` will receive an undefined value
87
}
8+
9+
void one_argument(int x);

0 commit comments

Comments
 (0)