1d76bf881d3e18580739e44698a0d1a499c2f9f1
hiram
  Fri Oct 2 10:31:39 2015 -0700
fixup gcc warnings for -Wunused-but-set-variable refs #16121

diff --git src/lib/fof.c src/lib/fof.c
index b0c8700..23c0799 100644
--- src/lib/fof.c
+++ src/lib/fof.c
@@ -466,31 +466,31 @@
  *     outName - name of index file to create
  *     readHeader - function that sets up file to read first record.  May be NULL.
  *     nextRecord - function that reads next record in file you're indexing
  *                  and returns the name of that record.  Returns FALSE at
  *                  end of file.  Can set *rNameLen to zero you want indexer
  *                  to ignore the record. 
  *     data - void pointer passed through to nextRecord.
  *     dupeOk - set to TRUE if you want dupes to not cause squawking
  */
 {
 FILE *out;
 bits32 sig = fofSig;
 bits32 elCount = 0;
 bits16 fileCount = inCount;
 struct fofRecList *recList = NULL, *rl;
-int i, fileIx, itemSize;
+int i, fileIx;
 char *lastName = "";
 int maxMod = 10000;
 
 /* Initialize. */
 localMem = lmInit(0);
 maxNameSize = 0;
 
 /* Read in all records and sort by name. */
 for (fileIx = 0; fileIx<inCount; ++fileIx)
     {
     char *inName = inFiles[fileIx];
     FILE *in = mustOpen(inName, "rb");
     bits32 start, end;
     char *name;
     int nameLen;
@@ -535,31 +535,30 @@
         if (!sameString(name, lastName))
             {
             ++elCount;
             lastName = name;
             }
         }
     }
 
 /* Write out index file. */
 printf("Writing %s\n", outName);
 out = mustOpen(outName, "wb");
 writeOne(out, sig);
 writeOne(out, elCount);
 writeOne(out, fileCount);
 writeOne(out, maxNameSize);
-itemSize = sizeof(bits32) +sizeof(bits32) + sizeof(UBYTE) + maxNameSize;
 for (i=0; i<inCount; ++i)
     {
     char *name = inFiles[i];
     int len = strlen(name)+1;
     mustWrite(out, name, len);
     }
 lastName = "";
 for (rl = recList; rl != NULL; rl = rl->next)
     {
     if (!dupeOk)
         {
         char *name = rl->rec.name;
         if (sameString(name, lastName))
             {
             warn("Duplicate %s only saving first.", name);