]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qtest/vnc-display-test: Suppress build warnings on Windows
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 19 Jan 2023 12:05:12 +0000 (13:05 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 26 Jan 2023 12:42:04 +0000 (13:42 +0100)
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>
tests/qtest/vnc-display-test.c

index e2a9d682bb69efda46101e08b7317e31bad3570c..fd63e3a881f5f26179b42b1e10cd6665cea0406a 100644 (file)
@@ -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)
 {