diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2002-05-06 16:45:52 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2002-05-06 16:45:52 (GMT) |
commit | d8c58af5063f4acb52a1ebad778e35ccc083c2f5 (patch) | |
tree | a63ef9f7d0e83cbe8e1bbf6a73211c10ce791a94 /hl | |
parent | b757e8f9ace4b56418ecacf0376971bea847fa4f (diff) | |
download | hdf5-d8c58af5063f4acb52a1ebad778e35ccc083c2f5.zip hdf5-d8c58af5063f4acb52a1ebad778e35ccc083c2f5.tar.gz hdf5-d8c58af5063f4acb52a1ebad778e35ccc083c2f5.tar.bz2 |
[svn-r5360]
Purpose:
erase windows warnings
Description:
Solution:
Platforms tested:
windows 2000,linux 2.2.18
Diffstat (limited to 'hl')
-rw-r--r-- | hl/tools/gif2h5/hdf2gif.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/hdf2gif.c b/hl/tools/gif2h5/hdf2gif.c index 1efc565..6bbedc4 100644 --- a/hl/tools/gif2h5/hdf2gif.c +++ b/hl/tools/gif2h5/hdf2gif.c @@ -69,7 +69,7 @@ int main(int argc , char **argv) { BYTE Blue[256]; int RWidth, RHeight; - int LeftOfs, TopOfs; + /*int LeftOfs, TopOfs;*/ int ColorMapSize, InitCodeSize, Background, BitsPerPixel; int j,nc; int w,h,i; @@ -95,8 +95,8 @@ int main(int argc , char **argv) { return 0; } - memset(image_name_arr , NULL , MAX_NUMBER_IMAGES); - memset(pal_name_arr , NULL , MAX_NUMBER_IMAGES); + memset((void*)&image_name_arr[0] , 0 , MAX_NUMBER_IMAGES); + memset((void*)&pal_name_arr[0] , 0 , MAX_NUMBER_IMAGES); HDFName = (CHAR*) malloc (strlen(argv[1]) + 1); GIFName = (CHAR*) malloc (strlen(argv[2]) + 1); @@ -193,11 +193,15 @@ int main(int argc , char **argv) { assert(dim_sizes[1]==(hsize_t)((int)dim_sizes[1])); RWidth = (int)dim_sizes[1]; RHeight = (int)dim_sizes[0]; + w = (int)dim_sizes[1]; + h = (int)dim_sizes[0]; + #ifdef UNUSED - w = dim_sizes[1]; + /* w = dim_sizes[1]; h = dim_sizes[0]; + */ LeftOfs = TopOfs = 0; #endif /*UNUSED */ |