From 985cab7737a10ea67e9b56e19a0423cd519bd41d Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Thu, 12 Oct 2023 09:57:46 +0200 Subject: [PATCH] gio/gregistrysettingsbackend.c: Use unsigned data type for bitfields that are only one-bit wide Fixes the following warnings on CLang: ../glib/gio/gregistrysettingsbackend.c:1503:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] child_item->readable = TRUE; ^ ~~~~ ../glib/gio/gregistrysettingsbackend.c:1567:28: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] child_item->readable = TRUE; ^ ~~~~ --- gio/gregistrysettingsbackend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c index 88ae913ce..3ed384fbc 100644 --- a/gio/gregistrysettingsbackend.c +++ b/gio/gregistrysettingsbackend.c @@ -443,7 +443,7 @@ typedef struct gint32 ref_count : 9; - gint32 readable : 1; + guint32 readable : 1; RegistryValue value; } RegistryCacheItem;