Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
"a function declaration without a prototype is deprecated in all versions of C"
  • Loading branch information
yarrick committed Jul 16, 2024
1 parent d67f917 commit 3a81350
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion atr_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ START_TEST(parse_sample)
}
END_TEST

Suite* atr_tests() {
Suite* atr_tests(void) {
Suite* suite = suite_create("atr");
TCase* test = tcase_create("atr");
tcase_add_loop_test(test, parse_sample, 0, ARRAY_SIZE(samples));
Expand Down
2 changes: 1 addition & 1 deletion data_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ START_TEST(t0_unknown_direction)
}
END_TEST

Suite* data_tests() {
Suite* data_tests(void) {
Suite* suite = suite_create("data");
TCase* test = tcase_create("data");
tcase_add_test(test, t0_empty_ack);
Expand Down
4 changes: 2 additions & 2 deletions session_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void log_msg(const char *msg) {
strncpy(last_msg, msg, SESSION_BUFLEN);
}

static void setup() {
static void setup(void) {
session_init(&sess, new_packet, new_baudrate, log_msg,
TEST_FD, TEST_BAUDRATE);
memset(&last_packet, 0, sizeof(last_packet));
Expand Down Expand Up @@ -208,7 +208,7 @@ START_TEST(t1_data_exchange)
}
END_TEST

Suite* session_tests() {
Suite* session_tests(void) {
Suite* suite = suite_create("session");
TCase* test = tcase_create("session");
tcase_add_checked_fixture(test, setup, NULL);
Expand Down
8 changes: 4 additions & 4 deletions test.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <check.h>

extern Suite *atr_tests();
extern Suite *data_tests();
extern Suite *session_tests();
extern Suite *atr_tests(void);
extern Suite *data_tests(void);
extern Suite *session_tests(void);

int main() {
int main(void) {
SRunner *runner;
int failed;

Expand Down

0 comments on commit 3a81350

Please sign in to comment.