mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
Fix signedness warning in gio/gio-tool.c:attribute_flags_to_string()
gio/gio-tool.c: In function ‘attribute_flags_to_string’: gio/gio-tool.c:171:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 171 | for (i = 0; i < G_N_ELEMENTS (flag_descr); i++) | ^
This commit is contained in:
parent
6b3e39fafd
commit
85f2492111
@ -149,7 +149,7 @@ char *
|
||||
attribute_flags_to_string (GFileAttributeInfoFlags flags)
|
||||
{
|
||||
GString *s;
|
||||
int i;
|
||||
gsize i;
|
||||
gboolean first;
|
||||
struct {
|
||||
guint32 mask;
|
||||
|
@ -463,7 +463,7 @@ static GString *
|
||||
file_builder_serialise (FileBuilder *fb,
|
||||
struct gvdb_pointer root)
|
||||
{
|
||||
struct gvdb_header header;
|
||||
struct gvdb_header header = { { 0, 0 }, { 0 }, { 0 }, { { 0 }, { 0 } } };
|
||||
GString *result;
|
||||
|
||||
memset (&header, 0, sizeof (header));
|
||||
|
Loading…
Reference in New Issue
Block a user