From 4e2b1877e34dab64bf6d7e91aa075e250c887d7d Mon Sep 17 00:00:00 2001 From: Jonathan Beezley Date: Wed, 9 Oct 2013 14:04:16 +0200 Subject: [PATCH] removing unused variables --- convert_geotiff.c | 4 ++-- geogrid_tiles.c | 3 +-- read_geotiff.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/convert_geotiff.c b/convert_geotiff.c index e0399f9..d4c4da3 100644 --- a/convert_geotiff.c +++ b/convert_geotiff.c @@ -83,7 +83,7 @@ int main (int argc, char * argv[]) { int c,i,j; int categorical_range,border_width,word_size,isigned,tile_size; - float scale,missing,missing0; + float scale,missing; GeogridIndex idx; char units[STRING_LENGTH],description[STRING_LENGTH],filename[STRING_LENGTH]; TIFF *file; @@ -98,7 +98,7 @@ int main (int argc, char * argv[]) { strcpy(description,"\"NO DESCRIPTION\""); categorical_range=0; tile_size=100; - missing0=0.; + missing=0; /* parse options */ while ( (c = getopt(argc, argv, "hzs:c:b:w:t:m:u:d:") ) != -1) { diff --git a/geogrid_tiles.c b/geogrid_tiles.c index eb19db2..e575e63 100644 --- a/geogrid_tiles.c +++ b/geogrid_tiles.c @@ -224,8 +224,7 @@ void write_tile( float *arr /* tile data buffer */ ) { - int itx,ity,isgn,endian,nx,ny,nz,i,j; - float swp; + int itx,ity,isgn,endian,nx,ny,nz; /* get global index for construction tile file name */ itx=itile_x*idx.tx+1; diff --git a/read_geotiff.c b/read_geotiff.c index 7fbf354..45650ad 100644 --- a/read_geotiff.c +++ b/read_geotiff.c @@ -47,7 +47,7 @@ GeogridIndex get_index_from_geotiff( int projid,count; short modeltype; GeogridIndex idx; - double stdpar1,stdpar2,stdlon,olat,olon,dx,dy; + double stdpar1,stdpar2,stdlon,olat,olon; double pixelscale[3]; uint32 inx,iny,inz; uint16 orientation,format;