From de5ea41b4f60ebc802365c192623e220fe4590ee Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Sun, 2 Sep 2018 17:43:52 -0400 Subject: [PATCH] t/: Use "int main(void)" for the main C signature This commit updates a few tests where we aren't using the correct C signature for main() or are not using any of its parameters (in the case of t/version/version.c.) --- t/generated-code2/test-generated-code2.c | 2 +- t/version/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/generated-code2/test-generated-code2.c b/t/generated-code2/test-generated-code2.c index 15f5dc8..5198af6 100755 --- a/t/generated-code2/test-generated-code2.c +++ b/t/generated-code2/test-generated-code2.c @@ -2370,7 +2370,7 @@ static Test tests[] = }; #define n_tests (sizeof(tests)/sizeof(Test)) -int main () +int main(void) { unsigned i; for (i = 0; i < n_tests; i++) diff --git a/t/version/version.c b/t/version/version.c index 6ee3c41..9fec1ab 100644 --- a/t/version/version.c +++ b/t/version/version.c @@ -35,7 +35,7 @@ #include "protobuf-c.h" int -main(int argc, char **argv) +main(void) { printf("PACKAGE_VERSION = %s\n", PACKAGE_VERSION);