Fix signedness warnings in gio/gapplication-tool.c

gio/gapplication-tool.c: In function ‘app_help’:
glib/gmacros.h:806:26: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
gio/gapplication-tool.c:121:26: note: in expansion of macro ‘MAX’
  121 |               maxwidth = MAX(maxwidth, strlen (_(substvars[i].var)));
      |                          ^~~
gio/gapplication-tool.c: In function ‘app_help’:
glib/gmacros.h:806:26: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
gio/gapplication-tool.c:140:20: note: in expansion of macro ‘MAX’
  140 |         maxwidth = MAX(maxwidth, strlen (topics[i].command));
      |                    ^~~
This commit is contained in:
Emmanuel Fleury 2020-11-17 23:28:44 +01:00
parent 02126e0a07
commit ebb3427f22

View File

@ -104,7 +104,7 @@ app_help (gboolean requested,
if (topic)
{
gint maxwidth;
guint maxwidth;
gsize i;
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication",
@ -129,7 +129,7 @@ app_help (gboolean requested,
}
else
{
gint maxwidth;
guint maxwidth;
gsize i;
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication", _("COMMAND"), _("[ARGS…]"));