Skip to content

Commit

Permalink
test: harmonize main function signatures
Browse files Browse the repository at this point in the history
Use ODP_UNUSED for intentionally unused variables of functions.
Thereby, harmonizing the main function signatures across multiple
files.

Signed-off-by: Kameswar Rao Vaddina <kameswar.vaddina@nokia.com>
  • Loading branch information
Kameswar Rao Vaddina committed Oct 26, 2023
1 parent 14915c2 commit 51a5f4f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/ipfragreass/odp_ipfragreass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion helper/test/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <stdio.h>
#include <string.h>

int main(void)
int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
{
printf("\nHelper library version is: %s\n\n", odph_version_str());

Expand Down
2 changes: 1 addition & 1 deletion helper/test/macros.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdio.h>
#include <stdlib.h>

int main(void)
int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
{
int a, b;
int ret = 0;
Expand Down
2 changes: 1 addition & 1 deletion helper/test/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion helper/test/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdio.h>
#include <string.h>

int main(void)
int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
{
printf("\nHelper library versions is: %s\n\n", odph_version_str());

Expand Down
2 changes: 1 addition & 1 deletion test/miscellaneous/odp_api_headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <odp_api.h>
#include <odp/helper/odph_api.h>

int main(void)
int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
{
odp_instance_t inst;

Expand Down

0 comments on commit 51a5f4f

Please sign in to comment.