[gnome-builder] fix warnings during optimized builds



commit 35a4fb86d0423c8736ca745523eaa96b15f4e0d0
Author: Christian Hergert <christian hergert me>
Date:   Mon Mar 23 01:11:34 2015 -0700

    fix warnings during optimized builds

 libide/autotools/ide-autotools-build-system.c |    2 --
 tests/test-c-parse-helper.c                   |    4 ++++
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libide/autotools/ide-autotools-build-system.c b/libide/autotools/ide-autotools-build-system.c
index 1625eb3..33bf653 100644
--- a/libide/autotools/ide-autotools-build-system.c
+++ b/libide/autotools/ide-autotools-build-system.c
@@ -111,13 +111,11 @@ ide_autotools_build_system_discover_file_worker (GTask        *task,
                                                  gpointer      task_data,
                                                  GCancellable *cancellable)
 {
-  IdeAutotoolsBuildSystem *self = source_object;
   g_autofree gchar *name = NULL;
   GFile *file = task_data;
   GFile *parent;
 
   g_assert (G_IS_TASK (task));
-  g_assert (IDE_IS_AUTOTOOLS_BUILD_SYSTEM (self));
   g_assert (G_IS_FILE (file));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
diff --git a/tests/test-c-parse-helper.c b/tests/test-c-parse-helper.c
index ffaa978..a0937d1 100644
--- a/tests/test-c-parse-helper.c
+++ b/tests/test-c-parse-helper.c
@@ -16,6 +16,10 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifdef G_DISABLE_ASSERT
+# undef G_DISABLE_ASSERT
+#endif
+
 #include "c-parse-helper.h"
 
 static void


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