summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/tools/gif2h5/hdf2gif.c6
-rw-r--r--hl/tools/gif2h5/hdfgifwr.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/hl/tools/gif2h5/hdf2gif.c b/hl/tools/gif2h5/hdf2gif.c
index cc7bab4..40051dc 100644
--- a/hl/tools/gif2h5/hdf2gif.c
+++ b/hl/tools/gif2h5/hdf2gif.c
@@ -22,9 +22,6 @@
#define MAX_FILE_LEN 256
#define MAX_NUMBER_IMAGES 50
-extern int hdfWriteGIF(FILE *fp, BYTE *pic, int ptype, int w, int h,
- BYTE *rmap, BYTE *gmap, BYTE *bmap, BYTE *pc2ncmap,
- int numcols, int colorstyle, int BitsPerPixel);
int EndianOrder;
#ifdef NOT_USED
@@ -67,7 +64,6 @@ int main(int argc , char **argv)
/* reference variables */
int has_local_palette; /* treated as a flag */
- int loop_times; /* number of times to loop, treat it as yes/no */
BYTE* b;
@@ -304,10 +300,8 @@ int main(int argc , char **argv)
/* Write out the GIF header and logical screen descriptor */
if (n_images > 1) {
fwrite("GIF89a", 1, 6, fpGif); /* the GIF magic number */
- loop_times = 0;
} else {
fwrite("GIF87a", 1, 6, fpGif); /* the GIF magic number */
- loop_times = 1;
}
putword(RWidth, fpGif); /* screen descriptor */
diff --git a/hl/tools/gif2h5/hdfgifwr.c b/hl/tools/gif2h5/hdfgifwr.c
index 9804098..0ce13be 100644
--- a/hl/tools/gif2h5/hdfgifwr.c
+++ b/hl/tools/gif2h5/hdfgifwr.c
@@ -101,6 +101,14 @@ int hdfWriteGIF(FILE *fp, byte *pic, int ptype, int w, int h, byte *rmap,
int i;
byte *pic8 = pic;
+ /* Shut compiler up... */
+ ptype=ptype;
+ rmap=rmap;
+ gmap=gmap;
+ bmap=bmap;
+ numcols=numcols;
+ colorstyle=colorstyle;
+
#ifdef UNUSED
Interlace = 0;
Background = 0;