Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / metadata.c
index f36be65fd3b66a76a31d1a3cc74486d30f8159ba..35aea004e67aecb05b5c44c54630468b82c551ce 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <ctype.h>
 #include <popt.h>
 #include <stdio.h>
@@ -58,7 +57,7 @@ static int count_arguments(const char **argv)
 {
        int i = 0;
 
-       assert(argv);
+       LTTNG_ASSERT(argv);
 
        while (argv[i] != NULL) {
                i++;
@@ -98,7 +97,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.024994 seconds and 4 git commands to generate.