From d8cdc57dc27a1137dfe12abdfc0a16b6e6af05cf Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Wed, 15 Apr 2026 10:23:21 +0100 Subject: [PATCH] Remove unused data_index (gcc-16 fix) Closes: #1133430 gcc-16 noted that data_index was declared and allocated to, but never actually used(!) So remove it. --- makeconcfile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/makeconcfile.c b/makeconcfile.c index 1feb56c..e7f00a8 100644 --- a/makeconcfile.c +++ b/makeconcfile.c @@ -135,7 +135,7 @@ int main(int argc,char **argv) int cmpnum=0; int base, curbase; int m_n, m_ref, m_cmpnum, m_cmpsize; - file_ptr_t word_index, data_index; + file_ptr_t word_index; int entry_size; short int this_index; Short_Univ_Int indextmp; @@ -198,7 +198,6 @@ int main(int argc,char **argv) */ word_index = 0; /* The index of each word, 0..N */ - data_index = 0; /* The offset in the ref data pool of current entry */ while (scanf( "%s", word) > 0) { /* Append string to word list */ if ((n=fputs( word, outfp )) <= 0) @@ -341,7 +340,6 @@ int main(int argc,char **argv) if ((n=fwrite( indextmp, sizeof(Short_Univ_Int), 1, indexfp )) <= 0) outerr(n); - data_index += entry_size; word_index++; } -- 2.30.2