1d76bf881d3e18580739e44698a0d1a499c2f9f1 hiram Fri Oct 2 10:31:39 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/lib/udc.c src/lib/udc.c index 9a498cd..148b0d4 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -596,43 +596,41 @@ /* Read signature and decide if byte-swapping is needed. */ // TODO: maybe buffer the I/O for performance? Don't read past header - // fd offset needs to point to first data block when we return. bits32 magic; boolean isSwapped = FALSE; mustReadOneFd(fd, magic); if (magic != udcBitmapSig) { magic = byteSwap32(magic); isSwapped = TRUE; if (magic != udcBitmapSig) errAbort("%s is not a udcBitmap file", fileName); } /* Allocate bitmap object, fill it in, and return it. */ -bits32 reserved32; -bits64 reserved64; struct udcBitmap *bits; AllocVar(bits); bits->blockSize = fdReadBits32(fd, isSwapped); bits->remoteUpdate = fdReadBits64(fd, isSwapped); bits->fileSize = fdReadBits64(fd, isSwapped); bits->version = fdReadBits32(fd, isSwapped); -reserved32 = fdReadBits32(fd, isSwapped); -reserved64 = fdReadBits64(fd, isSwapped); -reserved64 = fdReadBits64(fd, isSwapped); -reserved64 = fdReadBits64(fd, isSwapped); -reserved64 = fdReadBits64(fd, isSwapped); +fdReadBits32(fd, isSwapped); // ignore result +fdReadBits64(fd, isSwapped); // ignore result +fdReadBits64(fd, isSwapped); // ignore result +fdReadBits64(fd, isSwapped); // ignore result +fdReadBits64(fd, isSwapped); // ignore result bits->localUpdate = status.st_mtime; bits->localAccess = status.st_atime; bits->isSwapped = isSwapped; bits->fd = fd; return bits; } static void udcBitmapClose(struct udcBitmap **pBits) /* Free up resources associated with udcBitmap. */ { struct udcBitmap *bits = *pBits; if (bits != NULL) { mustCloseFd(&(bits->fd));