[gnome-builder] beautifier: fix -Wsign-compare warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] beautifier: fix -Wsign-compare warnings
- Date: Tue, 28 Feb 2017 20:34:57 +0000 (UTC)
commit 922aaceebe6eba2204f4b0bf2b687df1067d3243
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 28 12:34:15 2017 -0800
beautifier: fix -Wsign-compare warnings
plugins/beautifier/gb-beautifier-config.c | 10 +++++-----
plugins/beautifier/gb-beautifier-workbench-addin.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/beautifier/gb-beautifier-config.c b/plugins/beautifier/gb-beautifier-config.c
index cba9d24..f0db858 100644
--- a/plugins/beautifier/gb-beautifier-config.c
+++ b/plugins/beautifier/gb-beautifier-config.c
@@ -77,7 +77,7 @@ gb_beautifier_config_check_duplicates (GbBeautifierWorkbenchAddin *self,
g_assert (!ide_str_empty0 (lang_id));
g_assert (!ide_str_empty0 (display_name));
- for (gint i = 0; i < entries->len; ++i)
+ for (guint i = 0; i < entries->len; ++i)
{
GbBeautifierConfigEntry *entry = &g_array_index (entries, GbBeautifierConfigEntry, i);
@@ -102,7 +102,7 @@ gb_beautifier_map_check_duplicates (GbBeautifierWorkbenchAddin *self,
g_assert (map != NULL);
g_assert (!ide_str_empty0 (lang_id));
- for (gint i = 0; i < map->len; ++i)
+ for (guint i = 0; i < map->len; ++i)
{
GbBeautifierMapEntry *entry = &g_array_index (map, GbBeautifierMapEntry, i);
@@ -157,7 +157,7 @@ add_entries_from_config_ini_file (GbBeautifierWorkbenchAddin *self,
if (NULL != (profiles = g_key_file_get_groups (key_file, &nb_profiles)))
{
- for (gint i = 0; i < nb_profiles; ++i)
+ for (guint i = 0; i < nb_profiles; ++i)
{
g_autofree gchar *display_name = NULL;
g_autofree gchar *command = NULL;
@@ -341,7 +341,7 @@ add_entries_from_base_path (GbBeautifierWorkbenchAddin *self,
FALSE))
ret = TRUE;
- for (gint i = 0; i < map->len; ++i)
+ for (guint i = 0; i < map->len; ++i)
{
entry = &g_array_index (map, GbBeautifierMapEntry, i);
if (0 == g_strcmp0 (entry->mapped_lang_id, real_lang_id) &&
@@ -393,7 +393,7 @@ gb_beautifier_config_get_map (GbBeautifierWorkbenchAddin *self,
if (g_key_file_load_from_file (key_file, file_name, G_KEY_FILE_NONE, &error) &&
NULL != (lang_ids = g_key_file_get_groups (key_file, &nb_lang_ids)))
{
- for (gint i = 0; i < nb_lang_ids; ++i)
+ for (guint i = 0; i < nb_lang_ids; ++i)
{
g_autofree gchar *mapped_lang_id = NULL;
g_autofree gchar *default_profile = NULL;
diff --git a/plugins/beautifier/gb-beautifier-workbench-addin.c
b/plugins/beautifier/gb-beautifier-workbench-addin.c
index 9b459e6..7e510dd 100644
--- a/plugins/beautifier/gb-beautifier-workbench-addin.c
+++ b/plugins/beautifier/gb-beautifier-workbench-addin.c
@@ -138,7 +138,7 @@ view_populate_submenu (GbBeautifierWorkbenchAddin *self,
g_menu_remove_all (default_menu);
lang_id = gb_beautifier_helper_get_lang_id (self, view);
- for (gint i = 0; i < entries->len; ++i)
+ for (guint i = 0; i < entries->len; ++i)
{
GbBeautifierConfigEntry *entry;
g_autoptr(GMenuItem) item = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]