From d2f5cd4153e091a4fd9ca40796cb2bc282e08f79 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 12 Apr 2024 15:35:38 +0100 Subject: [PATCH] tests: Fix a -Wmaybe-uninitialized warning in gdbus-serialization test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s a false positive, but easy enough to squash. Signed-off-by: Philip Withnall --- gio/tests/gdbus-serialization.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/gdbus-serialization.c b/gio/tests/gdbus-serialization.c index 16bf35788..cfdf2accc 100644 --- a/gio/tests/gdbus-serialization.c +++ b/gio/tests/gdbus-serialization.c @@ -543,7 +543,7 @@ get_and_check_serialization (GVariant *value) /* First check that the serialization to the D-Bus wire format is correct - do this for both byte orders */ for (n = 0; n < 2; n++) { - GDBusMessageByteOrder byte_order; + GDBusMessageByteOrder byte_order = G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN; switch (n) { case 0: