From 80ca2298a37fc64cb4bcc199941afaa6ef2e5324 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Mon, 1 Sep 2008 23:26:27 +0000 Subject: [PATCH] avoid warnings about TIFFReadDirEntryFloat(), etc --- ChangeLog | 2 ++ libtiff/tif_dirread.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7ecefc1..83e20a10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-09-01 Frank Warmerdam + * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. + * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD depending on whether the file is bigtiff or classic tiff. http://bugzilla.maptools.org/show_bug.cgi?id=1917 diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 2490984e..8e77cd4f 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.143 2008-07-29 18:45:40 fwarmerdam Exp $ */ +/* $Id: tif_dirread.c,v 1.144 2008-09-01 23:26:27 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -66,7 +66,9 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* di static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value); static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value); static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value); +#ifdef notdef static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value); +#endif static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value); static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value); @@ -498,6 +500,7 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* d } } +#ifdef notdef static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value) { enum TIFFReadDirEntryErr err; @@ -599,6 +602,7 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* d return(TIFFReadDirEntryErrType); } } +#endif /* def notdef */ static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value) { @@ -732,6 +736,7 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* d *value=0; return(TIFFReadDirEntryErrOk); } + (void) desttypesize; #ifdef notdef if ((uint64)(4*1024*1024/typesize)tdir_count) return(TIFFReadDirEntryErrSizesan);