chiark / gitweb /
Remove unused data_index (gcc-16 fix) Closes: #1133430
authorMatthew Vernon <matthew@debian.org>
Wed, 15 Apr 2026 09:23:21 +0000 (10:23 +0100)
committerMatthew Vernon <matthew@debian.org>
Wed, 15 Apr 2026 09:36:33 +0000 (10:36 +0100)
gcc-16 noted that data_index was declared and allocated to, but never
actually used(!) So remove it.

makeconcfile.c

index 1feb56cfad6f60d464d7652f2cbde69aa9903683..e7f00a80057ac18755045ccd8dd7c7fa431cf2b0 100644 (file)
@@ -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++;
     }