]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/test_case_channel_conn_08/node_sim_relay.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / test_case_channel_conn_08 / node_sim_relay.c
index 46fbf163c6c8c2df03e7dfe9c1b8faee88e9df5a..8e5e66ec9eb14e7e0b397f476a29ed05e70a4456 100644 (file)
@@ -31,6 +31,8 @@
 #define CMD_LINE_ARG_INVITEURL  5
 
 int main(int argc, char *argv[]) {
+       (void)argc;
+
        struct timeval main_loop_wait = { 5, 0 };
 
        // Setup required signals
@@ -44,7 +46,7 @@ int main(int argc, char *argv[]) {
        assert(mesh);
        meshlink_set_log_cb(mesh, MESHLINK_DEBUG, meshlink_callback_logger);
 
-       meshlink_start(mesh);
+       assert(meshlink_start(mesh));
 
        /* All test steps executed - wait for signals to stop/start or close the mesh */
        while(test_running) {