[gnome-text-editor] build: remove warnings on release build type



commit 3dd99cf7c4b31ea8737761c9302cfac48ea37e7e
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 17 13:30:09 2021 -0700

    build: remove warnings on release build type

 src/editor-sidebar-row.c                    | 3 +--
 src/enchant/editor-enchant-spell-provider.c | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/editor-sidebar-row.c b/src/editor-sidebar-row.c
index 0579db5..d7a77f0 100644
--- a/src/editor-sidebar-row.c
+++ b/src/editor-sidebar-row.c
@@ -86,11 +86,10 @@ age_to_string (GBinding     *binding,
                GValue       *to_value,
                gpointer      user_data)
 {
-  EditorSidebarRow *self = user_data;
   GDateTime *dt;
 
   g_assert (G_IS_BINDING (binding));
-  g_assert (EDITOR_IS_SIDEBAR_ROW (self));
+  g_assert (EDITOR_IS_SIDEBAR_ROW (user_data));
 
   if ((dt = g_value_get_boxed (from_value)))
     g_value_take_string (to_value,
diff --git a/src/enchant/editor-enchant-spell-provider.c b/src/enchant/editor-enchant-spell-provider.c
index b9f20ff..e9b8285 100644
--- a/src/enchant/editor-enchant-spell-provider.c
+++ b/src/enchant/editor-enchant-spell-provider.c
@@ -97,9 +97,7 @@ static gboolean
 editor_enchant_spell_provider_supports_language (EditorSpellProvider *provider,
                                                  const char          *language)
 {
-  EditorEnchantSpellProvider *self = (EditorEnchantSpellProvider *)provider;
-
-  g_assert (EDITOR_IS_ENCHANT_SPELL_PROVIDER (self));
+  g_assert (EDITOR_IS_ENCHANT_SPELL_PROVIDER (provider));
   g_assert (language != NULL);
 
   return enchant_broker_dict_exists (get_broker (), language);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]