• Emmanuel Fleury's avatar
    Fixing various warning in glib/gvarianttypeinfo.c · 357c3db9
    Emmanuel Fleury authored
    glib/gvarianttypeinfo.c:115:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'b' */ { fixed_aligned(1) },   /* boolean */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:117:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'd' */ { fixed_aligned(8) },   /* double */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:120:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'g' */ { unaligned        },   /* signature string */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:121:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'h' */ { fixed_aligned(4) },   /* file handle (int32) */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:122:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'i' */ { fixed_aligned(4) },   /* int32 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:127:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'n' */ { fixed_aligned(2) },   /* int16 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:128:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'o' */ { unaligned        },   /* object path string */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:130:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'q' */ { fixed_aligned(2) },   /* uint16 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:132:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 's' */ { unaligned        },   /* string */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:133:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 't' */ { fixed_aligned(8) },   /* uint64 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:134:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'u' */ { fixed_aligned(4) },   /* uint32 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:135:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'v' */ { aligned(8)       },   /* variant */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:137:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'x' */ { fixed_aligned(8) },   /* int64 */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c:138:13: error: missing initializer for field ‘container_class’ of ‘GVariantTypeInfo’ {aka ‘const struct _GVariantTypeInfo’} [-Werror=missing-field-initializers]
       /* 'y' */ { fixed_aligned(1) },   /* byte */
                 ^
    glib/gvarianttypeinfo.c:69:10: note: ‘container_class’ declared here
       guchar container_class;
              ^~~~~~~~~~~~~~~
    glib/gvarianttypeinfo.c: In function ‘tuple_info_free’:
    glib/gvarianttypeinfo.c:368:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’} [-Werror=sign-compare]
       for (i = 0; i < tuple_info->n_members; i++)
                     ^
    glib/gvarianttypeinfo.c: In function ‘tuple_set_base_info’:
    glib/gvarianttypeinfo.c:641:16: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
           if (m->i == -1 && m->type_info->fixed_size)
                    ^~
    357c3db9
gvarianttypeinfo.c 27.9 KB