diff options
author | Andrey Kiselev <dron@ak4719.spb.edu> | 2005-09-13 14:09:10 +0000 |
---|---|---|
committer | Andrey Kiselev <dron@ak4719.spb.edu> | 2005-09-13 14:09:10 +0000 |
commit | 9ece518261cf0e00d267cae5dfffb78599fffe38 (patch) | |
tree | 6e9107a7f2866bbc80013603eaa83c14c865367e /tools/tiffset.c | |
parent | 76346d1aeb981285a9edc912f3eca5d9e817e3b3 (diff) | |
download | libtiff-git-9ece518261cf0e00d267cae5dfffb78599fffe38.tar.gz |
Avoid warnings.
Diffstat (limited to 'tools/tiffset.c')
-rw-r--r-- | tools/tiffset.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/tiffset.c b/tools/tiffset.c index 5bee5a68..b2cf4e37 100644 --- a/tools/tiffset.c +++ b/tools/tiffset.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $Id: tiffset.c,v 1.10 2005-02-24 14:47:11 fwarmerdam Exp $ + * $Id: tiffset.c,v 1.11 2005-09-13 14:13:42 dron Exp $ * * Project: libtiff tools * Purpose: Mainline for setting metadata in existing TIFF files. @@ -29,7 +29,10 @@ ****************************************************************************** * * $Log: tiffset.c,v $ - * Revision 1.10 2005-02-24 14:47:11 fwarmerdam + * Revision 1.11 2005-09-13 14:13:42 dron + * Avoid warnings. + * + * Revision 1.10 2005/02/24 14:47:11 fwarmerdam * Updated header. * */ @@ -107,7 +110,7 @@ main(int argc, char* argv[]) fprintf( stderr, "Failed to set %s=%s\n", fip->field_name, argv[arg_index] ); } else if (fip->field_writecount > 0) { - int ret; + int ret = 1; short wc; if (fip->field_writecount == TIFF_VARIABLE) @@ -139,6 +142,7 @@ main(int argc, char* argv[]) case TIFF_ASCII: case TIFF_SBYTE: case TIFF_UNDEFINED: + default: size = 1; break; |