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:
Emmanuel Fleury 2020-11-17 22:24:39 +01:00
parent 6b3e39fafd
commit 85f2492111
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ char *
attribute_flags_to_string (GFileAttributeInfoFlags flags)
{
GString *s;
int i;
gsize i;
gboolean first;
struct {
guint32 mask;

View File

@ -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));