From 1874d4e8c81dda255cc00ae593619d733a89177c Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 28 Oct 2015 19:10:20 +0000 Subject: [PATCH] * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, libtiff/tif_jpeg_12.c: suppress warnings about 'no previous declaration/prototype' --- ChangeLog | 6 ++++++ libtiff/tif_compress.c | 4 ++-- libtiff/tif_dir.c | 6 +++--- libtiff/tif_dirinfo.c | 4 ++-- libtiff/tif_jpeg_12.c | 3 +++ 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13399f08..c97889bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-10-28 Even Rouault + + * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, + libtiff/tif_jpeg_12.c: suppress warnings about 'no previous + declaration/prototype' + 2015-10-19 Even Rouault * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c index 20e72fd0..b0a430cf 100644 --- a/libtiff/tif_compress.c +++ b/libtiff/tif_compress.c @@ -1,4 +1,4 @@ -/* $Id: tif_compress.c,v 1.22 2010-03-10 18:56:48 bfriesen Exp $ */ +/* $Id: tif_compress.c,v 1.23 2015-10-28 19:10:20 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -85,7 +85,7 @@ TIFFNoDecode(TIFF* tif, const char* method) return (-1); } -int +static int _TIFFNoFixupTags(TIFF* tif) { (void) tif; diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c index 4dec1b65..36feb615 100644 --- a/libtiff/tif_dir.c +++ b/libtiff/tif_dir.c @@ -1,4 +1,4 @@ -/* $Id: tif_dir.c,v 1.122 2015-10-17 10:13:14 erouault Exp $ */ +/* $Id: tif_dir.c,v 1.123 2015-10-28 19:10:20 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -57,13 +57,13 @@ void _TIFFsetByteArray(void** vpp, void* vp, uint32 n) { setByteArray(vpp, vp, n, 1); } void _TIFFsetString(char** cpp, char* cp) { setByteArray((void**) cpp, (void*) cp, strlen(cp)+1, 1); } -void _TIFFsetNString(char** cpp, char* cp, uint32 n) +static void _TIFFsetNString(char** cpp, char* cp, uint32 n) { setByteArray((void**) cpp, (void*) cp, n, 1); } void _TIFFsetShortArray(uint16** wpp, uint16* wp, uint32 n) { setByteArray((void**) wpp, (void*) wp, n, sizeof (uint16)); } void _TIFFsetLongArray(uint32** lpp, uint32* lp, uint32 n) { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint32)); } -void _TIFFsetLong8Array(uint64** lpp, uint64* lp, uint32 n) +static void _TIFFsetLong8Array(uint64** lpp, uint64* lp, uint32 n) { setByteArray((void**) lpp, (void*) lp, n, sizeof (uint64)); } void _TIFFsetFloatArray(float** fpp, float* fp, uint32 n) { setByteArray((void**) fpp, (void*) fp, n, sizeof (float)); } diff --git a/libtiff/tif_dirinfo.c b/libtiff/tif_dirinfo.c index 7db4bdb9..6f9a23c1 100644 --- a/libtiff/tif_dirinfo.c +++ b/libtiff/tif_dirinfo.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirinfo.c,v 1.121 2014-05-07 01:58:46 bfriesen Exp $ */ +/* $Id: tif_dirinfo.c,v 1.122 2015-10-28 19:10:20 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -521,7 +521,7 @@ TIFFFindField(TIFF* tif, uint32 tag, TIFFDataType dt) return tif->tif_foundfield = (ret ? *ret : NULL); } -const TIFFField* +static const TIFFField* _TIFFFindFieldByName(TIFF* tif, const char *field_name, TIFFDataType dt) { TIFFField key = {0, 0, 0, TIFF_NOTYPE, 0, 0, 0, 0, 0, 0, NULL, NULL}; diff --git a/libtiff/tif_jpeg_12.c b/libtiff/tif_jpeg_12.c index 87aaa19e..8499e649 100644 --- a/libtiff/tif_jpeg_12.c +++ b/libtiff/tif_jpeg_12.c @@ -5,6 +5,9 @@ # define TIFFInitJPEG TIFFInitJPEG_12 +int +TIFFInitJPEG_12(TIFF* tif, int scheme); + # include LIBJPEG_12_PATH # include "tif_jpeg.c"