[gtk/matthiasc/for-master] testsuite: Avoid a compiler warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] testsuite: Avoid a compiler warning
- Date: Thu, 17 Jun 2021 13:38:12 +0000 (UTC)
commit 47bb5563270219b18b79090d52e895415356bb13
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 17 09:37:45 2021 -0400
testsuite: Avoid a compiler warning
This was showing up in ci on macos.
testsuite/gdk/clipboard-client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gdk/clipboard-client.c b/testsuite/gdk/clipboard-client.c
index b27da92205..07a3961e5a 100644
--- a/testsuite/gdk/clipboard-client.c
+++ b/testsuite/gdk/clipboard-client.c
@@ -318,7 +318,6 @@ do_it (GObject *object,
int
main (int argc, char *argv[])
{
- GtkWidget *window;
gboolean done = FALSE;
if (argc < 2)
@@ -355,6 +354,8 @@ main (int argc, char *argv[])
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
{
+ GtkWidget *window;
+
window = gtk_window_new ();
gtk_window_present (GTK_WINDOW (window));
handler = g_signal_connect (window, "notify::is-active", G_CALLBACK (do_it), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]