Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / index-allocator.c
index 885015d77a3183ea1478b96a00bef87a2895faba..8c73218a950d5275ac70d163ace4893cb53439ea 100644 (file)
@@ -5,7 +5,6 @@
  *
  */
 
-#include <assert.h>
 #include <inttypes.h>
 
 #include <urcu.h>
@@ -91,7 +90,7 @@ enum lttng_index_allocator_status lttng_index_allocator_release(
        enum lttng_index_allocator_status status =
                        LTTNG_INDEX_ALLOCATOR_STATUS_OK;
 
-       assert(idx < allocator->size);
+       LTTNG_ASSERT(idx < allocator->size);
 
        index = zmalloc(sizeof(*index));
        if (!index) {
This page took 0.023175 seconds and 4 git commands to generate.