mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
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:
parent
02126e0a07
commit
ebb3427f22
@ -104,7 +104,7 @@ app_help (gboolean requested,
|
|||||||
|
|
||||||
if (topic)
|
if (topic)
|
||||||
{
|
{
|
||||||
gint maxwidth;
|
guint maxwidth;
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication",
|
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication",
|
||||||
@ -129,7 +129,7 @@ app_help (gboolean requested,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gint maxwidth;
|
guint maxwidth;
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication", _("COMMAND"), _("[ARGS…]"));
|
g_string_append_printf (string, "\n %s %s %s\n\n", "gapplication", _("COMMAND"), _("[ARGS…]"));
|
||||||
|
Loading…
Reference in New Issue
Block a user