avoid warnings
This commit is contained in:
parent
f26d7e60de
commit
6be58fbab2
@ -1,3 +1,8 @@
|
||||
2004-09-09 Frank Warmerdam <warmerdam@pobox.com>
|
||||
|
||||
* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
|
||||
to avoid compile warnings about getopt() and a few other things.
|
||||
|
||||
2004-09-02 Andrey Kiselev <dron@remotesensing.org>
|
||||
|
||||
* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tiff2ps.c,v 1.26 2004-08-25 18:34:55 dron Exp $ */
|
||||
/* $Id: tiff2ps.c,v 1.27 2004-09-09 18:06:14 fwarmerdam Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -32,6 +32,10 @@
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "tiffio.h"
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tiffmedian.c,v 1.7 2004-07-24 19:03:16 dron Exp $ */
|
||||
/* $Id: tiffmedian.c,v 1.8 2004-09-09 18:06:14 fwarmerdam Exp $ */
|
||||
|
||||
/*
|
||||
* Apply median cut on an image.
|
||||
@ -40,10 +40,16 @@
|
||||
* Siggraph '82 proceedings, pp. 297-307
|
||||
*/
|
||||
|
||||
#include "tif_config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "tiffio.h"
|
||||
|
||||
#define MAX_CMAP_SIZE 256
|
||||
@ -401,7 +407,7 @@ static void
|
||||
splitbox(Colorbox* ptr)
|
||||
{
|
||||
uint32 hist2[B_LEN];
|
||||
int first, last;
|
||||
int first=0, last=0;
|
||||
register Colorbox *new;
|
||||
register uint32 *iptr, *histp;
|
||||
register int i, j;
|
||||
|
Loading…
Reference in New Issue
Block a user