From: Kevin Day Date: Thu, 26 Jan 2023 01:01:58 +0000 (-0600) Subject: Cleanup: Remove unused variables. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=c44f69eba040ca1d43acb07a2421e337cb760a43;p=fll Cleanup: Remove unused variables. This is revealed by the use of GCC -fanalyzer. There is a false positive when it comes to the ignore variable: warning: variable 'ignore' set but not used [-Wunused-but-set-variable] This particular error must be ignored. --- diff --git a/level_3/fss_write/c/main/common.c b/level_3/fss_write/c/main/common.c index b609d99..05f33ed 100644 --- a/level_3/fss_write/c/main/common.c +++ b/level_3/fss_write/c/main/common.c @@ -88,7 +88,6 @@ extern "C" { } { - f_array_length_t choice = 0; f_uint16s_t choices = f_uint16s_t_initialize; // Identify and prioritize "color context" parameters. @@ -407,8 +406,6 @@ extern "C" { f_array_length_t k = 0; f_array_length_t total = 0; f_array_length_t index = 0; - f_number_unsigned_t number_start = 0; - f_number_unsigned_t number_stop = 0; // Construct the array without allocating any more memory for the string data by setting this as a static string (used > 0, size = 0). while (i < values_ignore->used) { diff --git a/level_3/fss_write/c/main/fss_write.c b/level_3/fss_write/c/main/fss_write.c index 286e341..7cdb5f1 100644 --- a/level_3/fss_write/c/main/fss_write.c +++ b/level_3/fss_write/c/main/fss_write.c @@ -134,7 +134,6 @@ extern "C" { input.size_read = setting->state.step_large; f_array_length_t total = 0; - f_array_length_t length = 0; f_array_length_t ignore = 0; f_string_range_t range = f_string_range_t_initialize;