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;
                             ^ ~~~~
This commit is contained in:
Luca Bacci 2023-10-12 09:57:46 +02:00
parent 20b0d292ca
commit 985cab7737

View File

@ -443,7 +443,7 @@ typedef struct
gint32 ref_count : 9;
gint32 readable : 1;
guint32 readable : 1;
RegistryValue value;
} RegistryCacheItem;