Display and control your Android device
Add missing `void`s for empty parameter list
Romain Vimont8e7b041f3596
diff --git a/app/src/adb/adb.c b/app/src/adb/adb.cindex 6bc6dd62..b248b8ed 100644--- a/app/src/adb/adb.c+++ b/app/src/adb/adb.c@@ -70,7 +70,7 @@ argv_to_string(const char *const *argv, char *buf, size_t bufsize) {}static void-show_adb_installation_msg() {+show_adb_installation_msg(void) {#ifndef __WINDOWS__static const struct {const char *binary;diff --git a/app/src/icon.c b/app/src/icon.cindex a8588dd8..a9aad875 100644--- a/app/src/icon.c+++ b/app/src/icon.c@@ -271,7 +271,7 @@ error:}SDL_Surface *-scrcpy_icon_load() {+scrcpy_icon_load(void) {char *icon_path = get_icon_path();if (!icon_path) {return NULL;diff --git a/app/src/scrcpy.c b/app/src/scrcpy.cindex aabb7c5a..968629a2 100644--- a/app/src/scrcpy.c+++ b/app/src/scrcpy.c@@ -297,7 +297,7 @@ sc_timeout_on_timeout(struct sc_timeout *timeout, void *userdata) {// Generate a scrcpy id to differentiate multiple running scrcpy instancesstatic uint32_t-scrcpy_generate_scid() {+scrcpy_generate_scid(void) {struct sc_rand rand;sc_rand_init(&rand);// Only use 31 bits to avoid issues with signed values on the Java-sidediff --git a/app/tests/test_str.c b/app/tests/test_str.cindex 4fe8a1df..f719bc98 100644--- a/app/tests/test_str.c+++ b/app/tests/test_str.c@@ -358,7 +358,7 @@ static void test_index_of_column(void) {assert(sc_str_index_of_column(" a bc d", 1, " ") == 2);}-static void test_remove_trailing_cr() {+static void test_remove_trailing_cr(void) {char s[] = "abc\r";sc_str_remove_trailing_cr(s, sizeof(s) - 1);assert(!strcmp(s, "abc"));diff --git a/app/tests/test_vecdeque.c b/app/tests/test_vecdeque.cindex fa3ba963..44d33560 100644--- a/app/tests/test_vecdeque.c+++ b/app/tests/test_vecdeque.c@@ -102,7 +102,7 @@ static void test_vecdeque_reserve(void) {sc_vecdeque_destroy(&vdq);}-static void test_vecdeque_grow() {+static void test_vecdeque_grow(void) {struct SC_VECDEQUE(int) vdq = SC_VECDEQUE_INITIALIZER;bool ok = sc_vecdeque_reserve(&vdq, 20);@@ -142,7 +142,7 @@ static void test_vecdeque_grow() {sc_vecdeque_destroy(&vdq);}-static void test_vecdeque_push_hole() {+static void test_vecdeque_push_hole(void) {struct SC_VECDEQUE(int) vdq = SC_VECDEQUE_INITIALIZER;bool ok = sc_vecdeque_reserve(&vdq, 20);diff --git a/app/tests/test_vector.c b/app/tests/test_vector.cindex 7ca09989..459b4e0f 100644--- a/app/tests/test_vector.c+++ b/app/tests/test_vector.c@@ -187,7 +187,7 @@ static void test_vector_index_of(void) {sc_vector_destroy(&vec);}-static void test_vector_grow() {+static void test_vector_grow(void) {struct SC_VECTOR(int) vec = SC_VECTOR_INITIALIZER;bool ok;