mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-06 19:05:49 +01:00
Fixing signedness in glib/goptions.c
glib/goption.c: In function ‘context_has_h_entry’: glib/goption.c:785:21: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘gint’ {aka ‘int’} [-Werror=sign-compare] for (i = 0; i < context->main_group->n_entries; i++) ^ glib/goption.c:797:21: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘gint’ {aka ‘int’} [-Werror=sign-compare] for (i = 0; i < group->n_entries; i++) ^
This commit is contained in:
parent
4eed83a0ff
commit
aef59ca7c8
@ -277,7 +277,7 @@ struct _GOptionGroup
|
|||||||
gpointer translate_data;
|
gpointer translate_data;
|
||||||
|
|
||||||
GOptionEntry *entries;
|
GOptionEntry *entries;
|
||||||
gint n_entries;
|
gsize n_entries;
|
||||||
|
|
||||||
GOptionParseFunc pre_parse_func;
|
GOptionParseFunc pre_parse_func;
|
||||||
GOptionParseFunc post_parse_func;
|
GOptionParseFunc post_parse_func;
|
||||||
@ -665,7 +665,7 @@ calculate_max_length (GOptionGroup *group,
|
|||||||
GHashTable *aliases)
|
GHashTable *aliases)
|
||||||
{
|
{
|
||||||
GOptionEntry *entry;
|
GOptionEntry *entry;
|
||||||
gint i, len, max_length;
|
gsize i, len, max_length;
|
||||||
const gchar *long_name;
|
const gchar *long_name;
|
||||||
|
|
||||||
max_length = 0;
|
max_length = 0;
|
||||||
@ -828,7 +828,7 @@ g_option_context_get_help (GOptionContext *context,
|
|||||||
{
|
{
|
||||||
GList *list;
|
GList *list;
|
||||||
gint max_length = 0, len;
|
gint max_length = 0, len;
|
||||||
gint i;
|
gsize i;
|
||||||
GOptionEntry *entry;
|
GOptionEntry *entry;
|
||||||
GHashTable *shadow_map;
|
GHashTable *shadow_map;
|
||||||
GHashTable *aliases;
|
GHashTable *aliases;
|
||||||
@ -1505,7 +1505,7 @@ parse_short_option (GOptionContext *context,
|
|||||||
GError **error,
|
GError **error,
|
||||||
gboolean *parsed)
|
gboolean *parsed)
|
||||||
{
|
{
|
||||||
gint j;
|
gsize j;
|
||||||
|
|
||||||
for (j = 0; j < group->n_entries; j++)
|
for (j = 0; j < group->n_entries; j++)
|
||||||
{
|
{
|
||||||
@ -1587,7 +1587,7 @@ parse_long_option (GOptionContext *context,
|
|||||||
GError **error,
|
GError **error,
|
||||||
gboolean *parsed)
|
gboolean *parsed)
|
||||||
{
|
{
|
||||||
gint j;
|
gsize j;
|
||||||
|
|
||||||
for (j = 0; j < group->n_entries; j++)
|
for (j = 0; j < group->n_entries; j++)
|
||||||
{
|
{
|
||||||
@ -1698,7 +1698,7 @@ parse_remaining_arg (GOptionContext *context,
|
|||||||
GError **error,
|
GError **error,
|
||||||
gboolean *parsed)
|
gboolean *parsed)
|
||||||
{
|
{
|
||||||
gint j;
|
gsize j;
|
||||||
|
|
||||||
for (j = 0; j < group->n_entries; j++)
|
for (j = 0; j < group->n_entries; j++)
|
||||||
{
|
{
|
||||||
@ -2353,7 +2353,7 @@ void
|
|||||||
g_option_group_add_entries (GOptionGroup *group,
|
g_option_group_add_entries (GOptionGroup *group,
|
||||||
const GOptionEntry *entries)
|
const GOptionEntry *entries)
|
||||||
{
|
{
|
||||||
gint i, n_entries;
|
gsize i, n_entries;
|
||||||
|
|
||||||
g_return_if_fail (entries != NULL);
|
g_return_if_fail (entries != NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user