]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_random_port_bindings02.c
Fix compiler warnings in the test suites.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_random_port_bindings02.c
index 2d24c3af774db5833107928a9c1573f6a25b2425..b1a6259c44cc1e2f736bb4b20d1a669c01bae777 100644 (file)
@@ -51,6 +51,8 @@ static netns_state_t *test_random_port_bindings_state;
 static bool localnode = false;
 
 static int setup_test(void **state) {
+       (void)state;
+
        netns_create_topology(test_random_port_bindings_state);
        fprintf(stderr, "\nCreated topology\n");
 
@@ -70,6 +72,8 @@ static int setup_test(void **state) {
 }
 
 static int teardown_test(void **state) {
+       (void)state;
+
        meshlink_destroy("nut");
        meshlink_destroy("peer");
        meshlink_destroy("relay");
@@ -79,6 +83,8 @@ static int teardown_test(void **state) {
 }
 
 static void execute_test(test_step_func_t step_func, void **state) {
+       (void)state;
+
 
        fprintf(stderr, "\n\x1b[32mRunning Test\x1b[0m\n");
        bool test_result = step_func();
@@ -89,6 +95,8 @@ static void execute_test(test_step_func_t step_func, void **state) {
 }
 
 static void message_log(meshlink_handle_t *mesh, meshlink_log_level_t level, const char *text) {
+       (void)level;
+
        char *levelstr = "\x1b[32mRELAY";
 
        if(strcmp(mesh->name, "peer") == 0) {