[gtk/ci-update] Pacify gcc



commit 1c2fb712187e04c6538cab63e6b759f8d7e34357
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 14 10:41:18 2022 -0400

    Pacify gcc
    
    gcc 12 doesn't like unions anymore, it seems.
    Too bad.

 gdk/broadway/broadwayd.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/broadwayd.c b/gdk/broadway/broadwayd.c
index 9cfa48f138..1b246c8fc4 100644
--- a/gdk/broadway/broadwayd.c
+++ b/gdk/broadway/broadwayd.c
@@ -139,10 +139,12 @@ send_reply (BroadwayClient *client,
             guint32 type)
 {
   GOutputStream *output;
+  BroadwayRequestBase *request_base = &request->base;
+  BroadwayReplyBase *reply_base = &reply->base;
 
-  reply->base.size = size;
-  reply->base.in_reply_to = request ? request->base.serial : 0;
-  reply->base.type = type;
+  reply_base->size = size;
+  reply_base->in_reply_to = request ? request_base->serial : 0;
+  reply_base->type = type;
 
   output = g_io_stream_get_output_stream (G_IO_STREAM (client->connection));
   if (!g_output_stream_write_all (output, reply, size, NULL, NULL, NULL))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]