Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / track-untrack.c
index 8a892ef666bf7a47d8b0e8c8d2606014c0d12cc1..f175e2a86bb4f571061cfe6743d2492730cf19e6 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <assert.h>
 
 #include <urcu/list.h>
 
@@ -283,7 +282,7 @@ static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
                                        strtoul(one_value_str, NULL, 10);
 
                        if (writer) {
-                               const int ret = mi_lttng_integral_process_attribute_value(
+                               ret = mi_lttng_integral_process_attribute_value(
                                                writer, process_attr,
                                                (int64_t) one_value_int, true);
                                if (ret) {
@@ -353,7 +352,7 @@ static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
 
                } else {
                        if (writer) {
-                               const int ret = mi_lttng_string_process_attribute_value(
+                               ret = mi_lttng_string_process_attribute_value(
                                                writer, process_attr,
                                                one_value_str, true);
                                if (ret) {
@@ -469,7 +468,7 @@ static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
                free(prettified_arg);
 
                if (writer) {
-                       int ret = mi_lttng_writer_write_element_bool(writer,
+                       ret = mi_lttng_writer_write_element_bool(writer,
                                        mi_lttng_element_success,
                                        cmd_ret == CMD_SUCCESS);
 
This page took 0.024556 seconds and 4 git commands to generate.