From 51a5f4ff6948ba07267ff44ef0395094ca88943c Mon Sep 17 00:00:00 2001 From: Kameswar Rao Vaddina Date: Thu, 26 Oct 2023 12:36:59 +0300 Subject: [PATCH] test: harmonize main function signatures Use ODP_UNUSED for intentionally unused variables of functions. Thereby, harmonizing the main function signatures across multiple files. Signed-off-by: Kameswar Rao Vaddina --- example/ipfragreass/odp_ipfragreass.c | 2 +- helper/test/debug.c | 2 +- helper/test/macros.c | 2 +- helper/test/parse.c | 2 +- helper/test/version.c | 2 +- test/miscellaneous/odp_api_headers.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/ipfragreass/odp_ipfragreass.c b/example/ipfragreass/odp_ipfragreass.c index db5779915a2..55c76d7cc6b 100644 --- a/example/ipfragreass/odp_ipfragreass.c +++ b/example/ipfragreass/odp_ipfragreass.c @@ -228,7 +228,7 @@ static int run_worker(void *arg ODP_UNUSED) /** * ODP fragmentation and reassembly example main function */ -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { odp_instance_t instance; odp_pool_t fragment_pool; diff --git a/helper/test/debug.c b/helper/test/debug.c index 78ffb6347ae..8c50edc7597 100644 --- a/helper/test/debug.c +++ b/helper/test/debug.c @@ -10,7 +10,7 @@ #include #include -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { printf("\nHelper library version is: %s\n\n", odph_version_str()); diff --git a/helper/test/macros.c b/helper/test/macros.c index e6a203e206a..7ecf7bb2d56 100644 --- a/helper/test/macros.c +++ b/helper/test/macros.c @@ -8,7 +8,7 @@ #include #include -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { int a, b; int ret = 0; diff --git a/helper/test/parse.c b/helper/test/parse.c index 6f4dcc16ce0..e5a6cf17ecf 100644 --- a/helper/test/parse.c +++ b/helper/test/parse.c @@ -342,7 +342,7 @@ static int test_ipv4(void) return 0; } -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { int ret = 0; diff --git a/helper/test/version.c b/helper/test/version.c index 17c97188669..6af6df490b9 100644 --- a/helper/test/version.c +++ b/helper/test/version.c @@ -8,7 +8,7 @@ #include #include -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { printf("\nHelper library versions is: %s\n\n", odph_version_str()); diff --git a/test/miscellaneous/odp_api_headers.c b/test/miscellaneous/odp_api_headers.c index 843de2a028f..0dd6b0a2e22 100644 --- a/test/miscellaneous/odp_api_headers.c +++ b/test/miscellaneous/odp_api_headers.c @@ -8,7 +8,7 @@ #include #include -int main(void) +int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) { odp_instance_t inst;