--- a/tests/unit-test-server.c
+++ b/tests/unit-test-server.c
@@ -117,4 +117,5 @@ int main(int argc, char *argv[])
     }
     printf("Quit the loop: %s\n", modbus_strerror(errno));
     signal_handler(0);
+    return 0;
 }
