Skip to content

Commit

Permalink
testing: Fix functions with missing void argument
Browse files Browse the repository at this point in the history
The `void` argument was present in the declaration but not in the
definition.
  • Loading branch information
LukasWoodtli authored and mlasch committed Jan 25, 2024
1 parent 88f297f commit b560c49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/cbor_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ static struct TestTable table[] = {
{"test of cbor_test_83()", cbor_test_83}, {NULL, NULL},
};

CU_ErrorCode create_cbor_suit() {
CU_ErrorCode create_cbor_suit(void) {
CU_pSuite pSuite = NULL;

pSuite = CU_add_suite("Suite_CBOR", NULL, NULL);
Expand Down
2 changes: 1 addition & 1 deletion tests/senml_cbor_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ static struct TestTable table[] = {
{"test of senml_cbor_test_31()", senml_cbor_test_31}, {NULL, NULL},
};

CU_ErrorCode create_senml_cbor_suit() {
CU_ErrorCode create_senml_cbor_suit(void) {
CU_pSuite pSuite = NULL;

pSuite = CU_add_suite("Suite_SenML_CBOR", NULL, NULL);
Expand Down
15 changes: 7 additions & 8 deletions tests/senml_json_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,15 @@ static struct TestTable table[] = {
{ NULL, NULL },
};

CU_ErrorCode create_senml_json_suit()
{
CU_pSuite pSuite = NULL;
CU_ErrorCode create_senml_json_suit(void) {
CU_pSuite pSuite = NULL;

pSuite = CU_add_suite("Suite_SenML_JSON", NULL, NULL);
if (NULL == pSuite) {
return CU_get_error();
}
pSuite = CU_add_suite("Suite_SenML_JSON", NULL, NULL);
if (NULL == pSuite) {
return CU_get_error();
}

return add_tests(pSuite, table);
return add_tests(pSuite, table);
}

#endif

0 comments on commit b560c49

Please sign in to comment.