← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/disable_assert-invariant into lp:zorba

 

Matthias Brantner has proposed merging lp:~zorba-coders/zorba/disable_assert-invariant into lp:zorba.

Commit message:
  disable ASSERT_INVARIANT always (not only if NDEBUG is set). The problem with this
  is that it depends on the CMake version whether NDEBUG is set in RelWithDebInfo.
  This might cause unexpected slow queries with some CMake versions.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Ghislain Fourny (gislenius)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/disable_assert-invariant/+merge/182971
-- 
https://code.launchpad.net/~zorba-coders/zorba/disable_assert-invariant/+merge/182971
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/store/naive/json_items.h'
--- src/store/naive/json_items.h	2013-06-05 00:37:35 +0000
+++ src/store/naive/json_items.h	2013-08-29 17:56:31 +0000
@@ -472,7 +472,7 @@
 };
 
 
-#ifndef NDEBUG
+#if 0
 #define ASSERT_INVARIANT() assertInvariant()
 #else
 #define ASSERT_INVARIANT()