aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/vnc-display-test.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-19 13:05:12 +0100
committerThomas Huth <thuth@redhat.com>2023-01-26 13:42:04 +0100
commit6c25794fa36fe3fa483c6392c44ae68692aabb3a (patch)
treefedb215285836661f7c57ffbdafb832aaf161f4a /tests/qtest/vnc-display-test.c
parentc0031d389e7cc16b0223dbf5994627a4b9b44df3 (diff)
tests/qtest/vnc-display-test: Suppress build warnings on Windows
While this test is skipped on Windows, we still get when building: tests/qtest/vnc-display-test.c:22:20: warning: unused function 'on_vnc_error' [-Wunused-function] static inline void on_vnc_error(VncConnection* self, ^ tests/qtest/vnc-display-test.c:28:20: warning: unused function 'on_vnc_auth_failure' [-Wunused-function] static inline void on_vnc_auth_failure(VncConnection *self, ^ 2 warnings generated. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230119120514.28778-2-philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/vnc-display-test.c')
-rw-r--r--tests/qtest/vnc-display-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qtest/vnc-display-test.c b/tests/qtest/vnc-display-test.c
index e2a9d682bb..fd63e3a881 100644
--- a/tests/qtest/vnc-display-test.c
+++ b/tests/qtest/vnc-display-test.c
@@ -19,6 +19,8 @@ typedef struct Test {
GMainLoop *loop;
} Test;
+#if !defined(WIN32)
+
static void on_vnc_error(VncConnection* self,
const char* msg)
{
@@ -31,6 +33,8 @@ static void on_vnc_auth_failure(VncConnection *self,
g_error("vnc-auth-failure: %s", msg);
}
+#endif
+
static bool
test_setup(Test *test)
{