Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / help.c
index 7ef21c2f58008117d5d2a645a890e0819af067e4..a9a01e7f14a65db8084e5b8cdbdaa6c0ad038c8d 100644 (file)
@@ -10,7 +10,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 
 #include "../command.h"
 #include <common/utils.h>
@@ -112,7 +111,7 @@ int cmd_help(int argc, const char **argv, const struct cmd_struct commands[])
        /* Show command's help */
        cmd_argv[0] = cmd->name;
        cmd_argv[1] = "--help";
-       assert(cmd->func);
+       LTTNG_ASSERT(cmd->func);
        ret = cmd->func(2, cmd_argv);
 
 end:
This page took 0.023321 seconds and 4 git commands to generate.