]> Kevux Git Server - fll/commitdiff
Cleanup: Stale code, improve usage, replace macros.
authorKevin Day <thekevinday@gmail.com>
Fri, 20 May 2022 04:50:36 +0000 (23:50 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 20 May 2022 04:50:36 +0000 (23:50 -0500)
The primary focus of this commit is to remove stale code exposed by compilers.
This pass I used clang with -Wall.

Fixed some usage cases where the variables can be replaced with other variables.

I happened to notice some macros didn't need to exist and added the appropriate methods.
I did not search for other cases like this.
I only fixed what happened to be in front of me at the time.

19 files changed:
level_3/byte_dump/c/private-byte_dump.c
level_3/control/c/private-control.c
level_3/control/c/private-control.h
level_3/controller/c/entry/private-entry.c
level_3/controller/c/rule/private-rule.c
level_3/fake/c/private-build-objects.c
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_list_write/c/private-write.c
level_3/fss_basic_write/c/private-write.c
level_3/fss_embedded_list_read/c/fss_embedded_list_read.c
level_3/fss_embedded_list_read/c/private-common.c
level_3/fss_embedded_list_read/c/private-common.h
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_embedded_list_write/c/private-write.c
level_3/fss_extended_list_write/c/private-write.c
level_3/fss_extended_write/c/private-write.c
level_3/fss_payload_read/c/fss_payload_read.c
level_3/fss_payload_write/c/private-write.c
level_3/iki_read/c/private-read.c

index 174e852b38d88e6452858aae49bb780fa1e39902..2d3574c8b4f24e787f6d8e23186bd3ef0f2393de 100644 (file)
@@ -17,7 +17,6 @@ extern "C" {
     int byte_get = 0;
 
     int8_t width_utf = -1;
-    int8_t width_current = 0;
     int8_t width_count = 0;
 
     byte_dump_cell_t cell = byte_dump_cell_t_initialize;
index f1934762055f94e041043d951af0077a38b4db68..36be8b1be624245a3c9723abd770adf836639249 100644 (file)
@@ -249,7 +249,7 @@ extern "C" {
 #endif // _di_control_packet_header_flag_
 
 #ifndef _di_control_packet_header_length_
-  uint32_t control_packet_header_length(const bool is_big, const f_char_t buffer[]) {
+  uint32_t control_packet_header_length(const bool is_big, const uint8_t buffer[]) {
 
     #ifdef _is_F_endian_big
       if (is_big) {
@@ -297,8 +297,6 @@ extern "C" {
       if (F_status_is_error(status)) return status;
       if (length < 5) return F_status_set_error(F_packet_not);
 
-      uint8_t contol = control_packet_header_flag(head);
-
       // Only the first two bits of the 8 Control bits are allowed to be set to 1 for this Packet.
       if (head[0] & (~(control_packet_flag_binary_d | control_packet_flag_endian_big_d))) {
         return F_status_set_error(F_packet_not);
@@ -785,7 +783,7 @@ extern "C" {
             }
 
             if (F_status_is_error(status)) {
-              if (append_ids[i] && main->parameters.array[append_ids[i]].result == f_console_result_additional_e || !append_hass[i]) {
+              if ((append_ids[i] && main->parameters.array[append_ids[i]].result == f_console_result_additional_e) || !append_hass[i]) {
                 fll_error_print(main->error, F_status_set_fine(status), "f_string_dynamic_append", F_true);
               }
               else {
index 75ce328d2d4e470d7966585190e468d0644e6e27..a3581c0d0fa0c316de27fc8515fce9eded4ab3ce 100644 (file)
@@ -84,7 +84,7 @@ extern "C" {
  *   The 32-bit number representing the length.
  */
 #ifndef _di_control_packet_header_length_
-  extern uint32_t control_packet_header_length(const bool is_big, const f_char_t buffer[]) F_attribute_visibility_internal_d;
+  extern uint32_t control_packet_header_length(const bool is_big, const uint8_t buffer[]) F_attribute_visibility_internal_d;
 #endif // _di_control_packet_header_length_
 
 /**
index 63a5676cb8c34168b396253c960731779b5b1f21..a1960433e61707aacdaa6618aa34ef2aafa2e986 100644 (file)
@@ -832,9 +832,6 @@ extern "C" {
     f_status_t status = F_none;
     f_status_t status_lock = F_none;
 
-    f_array_length_t i = 0;
-    f_array_length_t j = 0;
-
     f_array_length_t at_i = 0;
     f_array_length_t at_j = 1;
 
@@ -1896,7 +1893,6 @@ extern "C" {
     cache->delimits.used = 0;
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
     f_array_length_t line = 0;
 
     controller_entry_t *entry = is_entry ? &global.setting->entry : &global.setting->exit;
index 742af24ff5783d11eeb314c383726ee3176db77e..3a76b205c355dff05b667cb5c90360be8b720c29 100644 (file)
@@ -339,7 +339,6 @@ extern "C" {
         }
 
         f_array_length_t i = 0;
-        f_array_length_t j = 0;
 
         for (; i < cache->object_actions.used; ++i) {
 
@@ -1294,8 +1293,6 @@ extern "C" {
     f_status_t status = F_none;
     f_status_t status_lock = F_none;
 
-    f_string_dynamics_t arguments_none = f_string_dynamics_t_initialize;
-
     controller_main_t * const main = (controller_main_t *) process->main_data;
     controller_thread_t * const thread = (controller_thread_t *) process->main_thread;
 
@@ -1310,7 +1307,6 @@ extern "C" {
     }
 
     pid_t *child = 0;
-    f_string_dynamic_t *child_pid_file = 0;
 
     {
       f_array_length_t i = 0;
@@ -1841,7 +1837,6 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
     f_array_length_t first = 0;
     f_string_range_t range = f_string_range_t_initialize;
 
@@ -1860,26 +1855,26 @@ extern "C" {
         status = f_string_dynamic_increase_by(action.parameters.array[process->cache.expanded.used].used + controller_common_allocation_large_d, buffer);
 
         // Apply the IKI delimits.
-        for (j = 0; j < iki_data->delimits.used && iki_data->delimits.array[j] < iki_data->variable.array[0].start; ++j) {
-          action.parameters.array[process->cache.expanded.used].string[iki_data->delimits.array[j]] = f_iki_syntax_placeholder_s.string[0];
+        for (i = 0; i < iki_data->delimits.used && iki_data->delimits.array[i] < iki_data->variable.array[0].start; ++i) {
+          action.parameters.array[process->cache.expanded.used].string[iki_data->delimits.array[i]] = f_iki_syntax_placeholder_s.string[0];
         } // for
 
         if (iki_data->variable.used) {
-          for (j = 0, first = 0; j < iki_data->variable.used; ++j) {
+          for (i = 0, first = 0; i < iki_data->variable.used; ++i) {
 
             // Copy everything up to the start of the IKI variable.
-            if (first < iki_data->variable.array[j].start) {
+            if (first < iki_data->variable.array[i].start) {
               range.start = first;
-              range.stop = iki_data->variable.array[j].start - 1;
+              range.stop = iki_data->variable.array[i].start - 1;
 
               status = f_string_dynamic_partial_append_nulless(action.parameters.array[process->cache.expanded.used], range, buffer);
               if (F_status_is_error(status)) break;
             }
 
-            status = controller_rule_expand_iki(process, action.parameters.array[process->cache.expanded.used], iki_data->vocabulary.array[j], iki_data->content.array[j], buffer);
+            status = controller_rule_expand_iki(process, action.parameters.array[process->cache.expanded.used], iki_data->vocabulary.array[i], iki_data->content.array[i], buffer);
             if (F_status_is_error(status)) break;
 
-            first = iki_data->variable.array[j].stop + 1;
+            first = iki_data->variable.array[i].stop + 1;
           } // for
 
           if (F_status_is_error(status)) break;
@@ -1897,8 +1892,8 @@ extern "C" {
         }
 
         // Unapply the IKI delimits.
-        for (j = 0; j < iki_data->delimits.used && iki_data->delimits.array[j] < iki_data->variable.array[0].start; ++j) {
-          action.parameters.array[process->cache.expanded.used].string[iki_data->delimits.array[j]] = f_iki_syntax_slash_s.string[0];
+        for (i = 0; i < iki_data->delimits.used && iki_data->delimits.array[i] < iki_data->variable.array[0].start; ++i) {
+          action.parameters.array[process->cache.expanded.used].string[iki_data->delimits.array[i]] = f_iki_syntax_slash_s.string[0];
         } // for
       }
       else {
@@ -2490,7 +2485,6 @@ extern "C" {
 
     {
       f_array_length_t j = 0;
-      f_array_length_t k = 0;
       f_array_length_t id_rule = 0;
       f_array_length_t id_dependency = 0;
 
@@ -2943,7 +2937,6 @@ extern "C" {
       f_array_length_t j = 0;
 
       controller_rule_item_t *rule_item = 0;
-      controller_rule_action_t *rule_action = 0;
 
       // Copy all rule item action statuses from the rule process to the rule.
       for (i = 0; i < rule->items.used; ++i) {
@@ -3757,7 +3750,6 @@ extern "C" {
       return status;
     }
 
-    f_array_length_t path_original_length = 0;
     f_string_dynamic_t *setting_value = 0;
     f_string_dynamics_t *setting_values = 0;
     f_string_maps_t *setting_maps = 0;
index c66fb70baabeacf96ebe48cce07d23d602706f33..da107951f75cc94803191178e71e24645ff72db3 100644 (file)
@@ -46,7 +46,6 @@ extern "C" {
 
     f_array_length_t i = 0;
     f_array_length_t j = 0;
-    uint8_t k = 0;
 
     for (i = 0; i < 2; ++i) {
 
index 3881e9d15ee2062086386429a1f9363b0c96969e..07b8fb2b9f70914e85923bd000a40d3a5dabc493 100644 (file)
@@ -165,10 +165,10 @@ extern "C" {
 
           output.id = -1;
           output.stream = 0;
-          status = f_file_stream_open(main->parameters.arguments.array[index], f_string_empty_s, &output);
+          status = f_file_stream_open(argv[index], f_string_empty_s, &output);
 
           if (F_status_is_error(status)) {
-            fll_error_file_print(main->error, F_status_set_fine(status), "f_file_stream_open", F_true, main->parameters.arguments.array[index], f_file_operation_open_s, fll_error_file_type_file_e);
+            fll_error_file_print(main->error, F_status_set_fine(status), "f_file_stream_open", F_true, argv[index], f_file_operation_open_s, fll_error_file_type_file_e);
           }
         }
       }
@@ -308,13 +308,13 @@ extern "C" {
       else if (main->parameters.array[fss_basic_list_write_parameter_prepend_e].result == f_console_result_additional_e) {
         const f_array_length_t index = main->parameters.array[fss_basic_list_write_parameter_prepend_e].values.array[main->parameters.array[fss_basic_list_write_parameter_prepend_e].values.used - 1];
 
-        if (main->parameters.arguments.array[index].used) {
+        if (argv[index].used) {
           f_state_t state = f_state_t_initialize;
-          f_string_range_t range = macro_f_string_range_t_initialize2(main->parameters.arguments.array[index].used);
+          f_string_range_t range = macro_f_string_range_t_initialize2(argv[index].used);
 
-          for (; range.start < main->parameters.arguments.array[index].used; ++range.start) {
+          for (; range.start < argv[index].used; ++range.start) {
 
-            status = f_fss_is_space(state, main->parameters.arguments.array[index], range);
+            status = f_fss_is_space(state, argv[index], range);
             if (F_status_is_error(status)) break;
 
             if (status == F_false) {
@@ -436,7 +436,7 @@ extern "C" {
 
               index = main->parameters.array[fss_basic_list_write_parameter_object_e].values.array[i];
 
-              status = fss_basic_list_write_process(main, output, quoted, &main->parameters.arguments.array[index], 0, &buffer);
+              status = fss_basic_list_write_process(main, output, quoted, &argv[index], 0, &buffer);
               if (F_status_is_error(status)) break;
             } // for
           }
@@ -457,7 +457,7 @@ extern "C" {
 
               index = main->parameters.array[fss_basic_list_write_parameter_content_e].values.array[i];
 
-              status = fss_basic_list_write_process(main, output, quoted, 0, &main->parameters.arguments.array[index], &buffer);
+              status = fss_basic_list_write_process(main, output, quoted, 0, &argv[index], &buffer);
               if (F_status_is_error(status)) break;
             } // for
           }
@@ -479,7 +479,7 @@ extern "C" {
 
             index = main->parameters.array[fss_basic_list_write_parameter_object_e].values.array[i];
 
-            status = fss_basic_list_write_process(main, output, quoted, &main->parameters.arguments.array[index], &main->parameters.arguments.array[main->parameters.array[fss_basic_list_write_parameter_content_e].values.array[i]], &buffer);
+            status = fss_basic_list_write_process(main, output, quoted, &argv[index], &argv[main->parameters.array[fss_basic_list_write_parameter_content_e].values.array[i]], &buffer);
             if (F_status_is_error(status)) break;
           } // for
         }
index 8c7f775074fb96ac275ee14562b645cb23af9e42..5f3537cb89dc798373a3a443fe9671b637b06b2d 100644 (file)
@@ -157,7 +157,6 @@ extern "C" {
     input.size_read = 2048;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
     f_string_range_t range = f_string_range_t_initialize;
 
     f_string_dynamic_t block = f_string_dynamic_t_initialize;
index 35d37e76c3e3686bb78c4bd2353cfba7bd813a8c..5ef573dc92bea4324231be11ae813373b985e70c 100644 (file)
@@ -161,7 +161,6 @@ extern "C" {
     input.size_read = 2048;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
     f_string_range_t range = f_string_range_t_initialize;
 
     f_string_dynamic_t block = f_string_dynamic_t_initialize;
index ab6acba51c06d0168f2e484b87ac59bd034df8ea..6f70e97ab1e143587d203da4aabe4895d179a236 100644 (file)
@@ -405,7 +405,7 @@ extern "C" {
         }
 
         // Clear buffers before continuing.
-        macro_f_fss_nest_t_delete_simple(data.nest);
+        f_fss_nest_resize(0, &data.nest);
         f_string_dynamic_resize(0, &data.buffer);
       }
 
@@ -521,17 +521,17 @@ extern "C" {
           }
 
           // Clear buffers before repeating the loop.
-          macro_f_fss_nest_t_delete_simple(data.nest);
+          f_fss_nest_resize(0, &data.nest);
           data.buffer.used = 0;
         } // for
       }
 
-      macro_f_fss_nest_t_delete_simple(data.nest);
+      f_fss_nest_resize(0, &data.nest);
       f_string_dynamic_resize(0, &data.buffer);
-      macro_fss_embedded_list_read_depths_t_delete_simple(depths);
-      macro_f_fss_delimits_t_delete_simple(objects_delimits);
-      macro_f_fss_delimits_t_delete_simple(contents_delimits);
-      macro_f_fss_comments_t_delete_simple(comments);
+      fss_embedded_list_read_depths_resize(0, &depths);
+      f_array_lengths_resize(0, &objects_delimits);
+      f_array_lengths_resize(0, &contents_delimits);
+      f_string_ranges_resize(0, &comments);
     }
     else {
       fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s);
index d0645223423db022cbdf4b1a123d810db94ea2d8..f11d776ba8fbd81936896de0778bdada6d4a3859 100644 (file)
@@ -8,14 +8,46 @@ extern "C" {
 #ifndef _di_fss_embedded_list_read_data_delete_
   f_status_t fss_embedded_list_read_data_delete(fss_embedded_list_read_data_t * const data) {
 
-    macro_f_fss_nest_t_delete_simple(data->nest);
-
+    f_fss_nest_resize(0, &data->nest);
     f_string_dynamic_resize(0, &data->buffer);
 
     return F_none;
   }
 #endif // _di_fss_embedded_list_read_data_delete_
 
+#ifndef _di_fss_embedded_list_read_data_delete_
+  f_status_t fss_embedded_list_read_depth_delete(fss_embedded_list_read_depth_t * const depth) {
+
+    f_string_dynamic_resize(0, &depth->value_name);
+
+    return F_none;
+  }
+#endif // _di_fss_embedded_list_read_data_delete_
+
+#ifndef _di_fss_embedded_list_read_depths_resize_
+  f_status_t fss_embedded_list_read_depths_resize(const f_array_length_t length, fss_embedded_list_read_depths_t *depths) {
+
+    if (!depths) {
+      return F_status_set_error(F_parameter);
+    }
+
+    for (f_array_length_t i = length; i < depths->size; ++i) {
+      fss_embedded_list_read_depth_delete(&depths->array[i]);
+    } // for
+
+    const f_status_t status = f_memory_resize(depths->size, length, sizeof(fss_embedded_list_read_depth_t), (void **) & depths->array);
+    if (F_status_is_error(status)) return status;
+
+    depths->size = length;
+
+    if (depths->used > depths->size) {
+      depths->used = length;
+    }
+
+    return F_none;
+  }
+#endif // _di_fss_embedded_list_read_depths_resize_
+
 #ifndef _di_fss_embedded_list_read_print_signal_received_
   void fss_embedded_list_read_print_signal_received(fss_embedded_list_read_data_t * const data) {
 
index 68f5eee979e8ec844f45a935e0056e0650945957..3395709d8d9bb3a9068730f039e9472a3a93c3cc 100644 (file)
@@ -115,44 +115,6 @@ extern "C" {
   } fss_embedded_list_read_depths_t;
 
   #define fss_embedded_list_read_depths_t_initialize { 0, 0, 0 }
-
-  #define macro_fss_embedded_list_read_depths_t_clear(depths) macro_f_memory_structure_clear(depths)
-
-  #define macro_fss_embedded_list_read_depths_t_delete_simple(depths) \
-    depths.used = depths.size; \
-    while (depths.used > 0) { \
-      --depths.used; \
-      macro_fss_embedded_list_read_depth_t_delete_simple(depths.array[depths.used]); \
-    } \
-    if (!depths.used) macro_f_memory_structure_delete_simple(depths, fss_embedded_list_read_depth_t)
-
-  #define macro_fss_embedded_list_read_depths_t_resize(status, depths, new_length) \
-    status = F_none; \
-    if (new_length < depths.size) { \
-      f_array_length_t i = depths.size - new_length; \
-      for (; i < depths.size; ++i) { \
-        macro_fss_embedded_list_read_depth_t_delete_simple(depths.array[i]); \
-      } \
-    } \
-    if (status == F_none) status = f_memory_resize(depths.size, new_length, sizeof(fss_embedded_list_read_depth_t), (void **) & depths.array); \
-    if (status == F_none) { \
-      depths.size = new_length; \
-      if (depths.used > depths.size) depths.used = new_length; \
-    }
-
-  #define macro_fss_embedded_list_read_depths_t_adjust(status, depths, new_length) \
-    status = F_none; \
-    if (new_length < depths.size) { \
-      f_array_length_t i = depths.size - new_length; \
-      for (; i < depths.size; ++i) { \
-        macro_fss_embedded_list_read_depth_t_delete_simple(depths.array[i]); \
-      } \
-    } \
-    if (status == F_none) status = f_memory_adjust(depths.size, new_length, sizeof(fss_embedded_list_read_depth_t), (void **) & depths.array); \
-    if (status == F_none) { \
-      depths.size = new_length; \
-      if (depths.used > depths.size) depths.used = new_length; \
-    }
 #endif // _di_fss_embedded_list_read_depths_t_
 
 /**
@@ -202,6 +164,47 @@ extern "C" {
 #endif // _di_fss_embedded_list_read_data_delete_
 
 /**
+ * Deallocate depth data.
+ *
+ * @param depth
+ *   The depth data to delete.
+ *
+ * @return
+ *   F_none on success.
+ *
+ *   Status codes (with error bit) are returned on any problem.
+ *
+ * @see f_string_dynamic_resize()
+ */
+#ifndef _di_fss_embedded_list_read_depth_delete_
+  extern f_status_t fss_embedded_list_read_depth_delete(fss_embedded_list_read_depth_t * const depth) F_attribute_visibility_internal_d;
+#endif // _di_fss_embedded_list_read_depth_delete_
+
+/**
+ * Resize the depth array.
+ *
+ * @param length
+ *   The new size to use.
+ * @param depths
+ *   The depth array to resize.
+ *
+ * @return
+ *   F_none on success.
+ *
+ *   Errors (with error bit) from: f_memory_resize().
+ *
+ *   Errors (with error bit) from: fss_embedded_list_read_depths_increase().
+ *
+ * @see f_memory_resize()
+ *
+ * @see fss_embedded_list_read_depth_delete_simple()
+ * @see fss_embedded_list_read_depths_increase()
+ */
+#ifndef _di_fss_embedded_list_read_depths_resize_
+  extern f_status_t fss_embedded_list_read_depths_resize(const f_array_length_t length, fss_embedded_list_read_depths_t *depths) F_attribute_visibility_internal_d;
+#endif // _di_fss_embedded_list_read_depths_resize_
+
+/**
  * Print a message about a process signal being recieved, such as an interrupt signal.
  *
  * @param data
index 38de2fa4ca8e08b47e40ff1e6a931b33e315759b..8bfad4c25b0033d65faf536104c1b49e1fa4010b 100644 (file)
@@ -107,7 +107,7 @@ extern "C" {
         i = data->main->parameters.array[fss_embedded_list_read_parameter_depth_e].values.used + 1;
       }
 
-      macro_fss_embedded_list_read_depths_t_resize(status, (*depths), i);
+      status = fss_embedded_list_read_depths_resize(i, depths);
 
       if (F_status_is_error(status)) {
         fll_error_print(data->main->error, F_status_set_fine(status), "fss_embedded_list_read_main_preprocess_depth", F_true);
@@ -255,8 +255,7 @@ extern "C" {
       status = fll_fss_embedded_list_read(data->buffer, state, &input, &data->nest, objects_delimits, contents_delimits, comments);
 
       if (F_status_is_error_not(status) && (status == F_data_not_stop || status == F_data_not_eos)) {
-        macro_f_fss_nest_t_delete_simple(data->nest);
-        f_string_dynamic_resize(0, &data->buffer);
+        fss_embedded_list_read_data_delete(data);
 
         if (data->main->parameters.array[fss_embedded_list_read_parameter_total_e].result == f_console_result_found_e) {
           fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_0_s, f_string_eol_s);
@@ -268,8 +267,7 @@ extern "C" {
       }
 
       if (F_status_is_error(status)) {
-        macro_f_fss_nest_t_delete_simple(data->nest);
-        f_string_dynamic_resize(0, &data->buffer);
+        fss_embedded_list_read_data_delete(data);
 
         return status;
       }
index 50260bdfd82a17d2adc60903c65656bbb321848e..7687590bb1838cc0927b9edf6c34e4d94c58a300 100644 (file)
@@ -157,7 +157,6 @@ extern "C" {
     input.size_read = 2048;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
 
     f_string_range_t range = f_string_range_t_initialize;
     f_string_range_t range_ignore = f_string_range_t_initialize;
index edf7bf882ae7a418e48ac2e56c3e3bf4d8331e2f..88d4e7e5a39c96a9f5b127d6dcc90b2189734f59 100644 (file)
@@ -157,7 +157,6 @@ extern "C" {
     input.size_read = 2048;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
 
     f_string_range_t range = f_string_range_t_initialize;
     f_string_range_t range_ignore = f_string_range_t_initialize;
index 0ebcf53abe0ed6bda7f4008548d72d7c5481b216..a33d943a366c2f5c9d7a4d7c5620f8aa5eb6489c 100644 (file)
@@ -167,7 +167,6 @@ extern "C" {
     f_array_length_t i = 0;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
     f_string_range_t range = f_string_range_t_initialize;
 
     f_string_dynamic_t block = f_string_dynamic_t_initialize;
index 59d57080541151a580fba9a88c09d1b9d692e161..fc3fe33fea6660e7d8a79f411846227a1199f7d9 100644 (file)
@@ -557,7 +557,6 @@ extern "C" {
         off_t size_block = 0;
         off_t size_file = 0;
         off_t size_read = 0;
-        const f_array_length_t buffer_used = data.buffer.used;
 
         for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
 
index 4a81764a67d727a4d84d9a2d2d72564ece753f5a..7feacac64ee7753d730cc051ff172943d3778646 100644 (file)
@@ -198,7 +198,6 @@ extern "C" {
     input.size_read = 2048;
 
     f_array_length_t total = 0;
-    f_array_length_t previous = 0;
     f_string_range_t range = f_string_range_t_initialize;
 
     f_string_dynamic_t block = f_string_dynamic_t_initialize;
index a0bf048a55372a830599986e046739be9e69b39d..0c7046ea765b288a27e2749dd59fa9b29ec3a8a9 100644 (file)
@@ -604,8 +604,6 @@ extern "C" {
       return F_none;
     }
 
-    f_status_t status = F_none;
-
     f_array_length_t i = 0;
     f_array_length_t j = 0;
 
@@ -682,8 +680,6 @@ extern "C" {
       return F_none;
     }
 
-    f_status_t status = F_none;
-
     f_array_length_t i = 0;
     f_array_length_t j = 0;