Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / regenerate.c
index 5328ee37336e36014f204caf06e8f20a4119fa73..0e904f8abcba1cdc6c92f6e4b5be3030ba84dac9 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <ctype.h>
 #include <popt.h>
 #include <stdio.h>
@@ -60,7 +59,7 @@ static int count_arguments(const char **argv)
 {
        int i = 0;
 
-       assert(argv);
+       LTTNG_ASSERT(argv);
 
        while (argv[i] != NULL) {
                i++;
@@ -117,7 +116,7 @@ static int handle_command(const char **argv)
        }
 
        argc = count_arguments(argv);
-       assert(argc >= 1);
+       LTTNG_ASSERT(argc >= 1);
 
        cmd = &actions[i];
        while (cmd->func != NULL) {
This page took 0.023178 seconds and 4 git commands to generate.