summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-10-05 02:48:10 -0700
committerFrediano Ziglio <freddy77@gmail.com>2021-04-08 16:18:17 +0100
commit11374b28b494a31499fd8269c801b6857ebe6aec (patch)
treea079d2375b52fddcc988f33c5e772e740192dbae
parent9f1514b8040cf8dd74bd85097855f8da4fa143d0 (diff)
clang-tidy: remove pointless void
Found with modernize-redundant-void-arg Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--server/inputs-channel.cpp2
-rw-r--r--server/reds.cpp2
-rw-r--r--server/tests/test-channel.cpp2
-rw-r--r--server/tests/test-display-base.cpp10
-rw-r--r--server/tests/test-stream-device.cpp6
5 files changed, 11 insertions, 11 deletions
diff --git a/server/inputs-channel.cpp b/server/inputs-channel.cpp
index 80ea8a89..939d652c 100644
--- a/server/inputs-channel.cpp
+++ b/server/inputs-channel.cpp
@@ -60,7 +60,7 @@ struct SpiceMouseState {
int dummy;
};
-static SpiceMouseState* spice_mouse_state_new(void)
+static SpiceMouseState* spice_mouse_state_new()
{
return g_new0(SpiceMouseState, 1);
}
diff --git a/server/reds.cpp b/server/reds.cpp
index a777ac1a..052bd6aa 100644
--- a/server/reds.cpp
+++ b/server/reds.cpp
@@ -2740,7 +2740,7 @@ static inline void openssl_global_init(void)
}
#else
-static inline void openssl_global_init(void)
+static inline void openssl_global_init()
{
}
#endif
diff --git a/server/tests/test-channel.cpp b/server/tests/test-channel.cpp
index b1f2be83..e9163cd1 100644
--- a/server/tests/test-channel.cpp
+++ b/server/tests/test-channel.cpp
@@ -196,7 +196,7 @@ static RedStream *create_dummy_stream(SpiceServer *server, int *p_socket)
return stream;
}
-static void channel_loop(void)
+static void channel_loop()
{
SpiceCoreInterface *core;
SpiceServer *server = spice_server_new();
diff --git a/server/tests/test-display-base.cpp b/server/tests/test-display-base.cpp
index 89634903..dea49b07 100644
--- a/server/tests/test-display-base.cpp
+++ b/server/tests/test-display-base.cpp
@@ -97,7 +97,7 @@ static void child_exited(GPid pid, gint status, gpointer user_data)
exit(0);
}
-static void regression_test(void)
+static void regression_test()
{
GPid pid;
GError *error = NULL;
@@ -476,12 +476,12 @@ static void push_command(QXLCommandExt *ext)
pthread_mutex_unlock(&command_mutex);
}
-static int get_num_commands(void)
+static int get_num_commands()
{
return commands_end - commands_start;
}
-static struct QXLCommandExt *get_simple_command(void)
+static struct QXLCommandExt *get_simple_command()
{
pthread_mutex_lock(&command_mutex);
struct QXLCommandExt *ret = NULL;
@@ -685,7 +685,7 @@ static struct {
uint8_t data[CURSOR_WIDTH * CURSOR_HEIGHT * 4 + 128]; // 32bit per pixel
} cursor;
-static void cursor_init(void)
+static void cursor_init()
{
cursor.cursor.header.unique = 0;
cursor.cursor.header.type = SPICE_CURSOR_TYPE_COLOR32;
@@ -960,7 +960,7 @@ void test_destroy(Test *test)
g_free(test);
}
-static void init_automated(void)
+static void init_automated()
{
}
diff --git a/server/tests/test-stream-device.cpp b/server/tests/test-stream-device.cpp
index c7db9343..bb9852ae 100644
--- a/server/tests/test-stream-device.cpp
+++ b/server/tests/test-stream-device.cpp
@@ -67,7 +67,7 @@ static uint8_t *add_format(uint8_t *p, uint32_t w, uint32_t h, SpiceVideoCodecTy
/* currently we don't care about possible capabilities sent so discard them
* from server reply */
static void
-discard_server_capabilities(void)
+discard_server_capabilities()
{
StreamDevHeader hdr;
@@ -88,7 +88,7 @@ discard_server_capabilities(void)
// check we have an error message on the write buffer
static void
-check_vmc_error_message(void)
+check_vmc_error_message()
{
StreamDevHeader hdr;
@@ -181,7 +181,7 @@ static void test_stream_device_teardown(TestFixture *fixture, gconstpointer user
core = NULL;
}
-static void test_kick(void)
+static void test_kick()
{
spice_server_add_interface(test->server, &vmc->instance.base);