Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-j.one.com (mx-j.one.com [91.198.169.57])
	by mail6.b-one.net (Postfix) with ESMTP id 14D018017F7FD
	for <filtered@awaresystems.be>; Sat,  7 Jul 2012 17:01:01 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-j: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.160.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48])
	by mx-j.one.com (Postfix) with ESMTP id 8340559BDFE9
	for <filtered@awaresystems.be>; Sat,  7 Jul 2012 15:01:00 +0000 (UTC)
Received: by pbbrq8 with SMTP id rq8so18389779pbb.21
        for <filtered@awaresystems.be>; Sat, 07 Jul 2012 08:00:59 -0700 (PDT)
Received: by 10.66.83.232 with SMTP id t8mr13067115pay.19.1341673259175;
        Sat, 07 Jul 2012 08:00:59 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.143.92.14 with SMTP id u14csp106379wfl;
        Sat, 7 Jul 2012 08:00:56 -0700 (PDT)
Received: by 10.66.81.106 with SMTP id z10mr52880472pax.26.1341673255464;
        Sat, 07 Jul 2012 08:00:55 -0700 (PDT)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.250 as permitted sender) client-ip=91.198.169.250;
Received: by 10.68.141.194 with POP3 id rq2mf15596912pbb.30;
        Sat, 07 Jul 2012 08:00:55 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail6.b-one.net (Postfix) with ESMTP id 0B8888017F7F8
	for <info@awaresystems.be>; Sat,  7 Jul 2012 16:35:25 +0200 (CEST)
X-Greylist: accepted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-s.one.com (Postfix) with ESMTP id A9A8110C4CDC
	for <info@awaresystems.be>; Sat,  7 Jul 2012 14:35:24 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 9CFA61EDB57;
	Sat,  7 Jul 2012 09:34:08 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 05F111EDB48
	for <tiff@lists.maptools.org>; Sat,  7 Jul 2012 09:13:49 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q67EDmwY007004; Sat, 7 Jul 2012 09:13:48 -0500 (CDT)
Date: Sat, 7 Jul 2012 09:13:48 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Even Rouault <even.rouault@mines-paris.org>
In-Reply-To: <201207071038.17318.even.rouault@mines-paris.org>
Message-ID: <alpine.GSO.2.01.1207070907070.27589@freddy.simplesystems.org>
References: <alpine.GSO.2.01.1207061419280.27589@freddy.simplesystems.org>
	<CAAcuQeakZZRzZL-e3-VVueON67+jAOs14Q6VMVDuPhsxV4CitQ@mail.gmail.com>
	<alpine.GSO.2.01.1207061513430.27589@freddy.simplesystems.org>
	<201207071038.17318.even.rouault@mines-paris.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="-559023410-1850214161-1341670428=:27589"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Sat, 07 Jul 2012 09:13:48 -0500 (CDT)
Cc: Tiff List <tiff@lists.maptools.org>
Subject: Re: [Tiff] Challenge to properly eliminate warning
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1850214161-1341670428=:27589
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Sat, 7 Jul 2012, Even Rouault wrote:
>
> Proposal : at the beginning of TIFFReadDirEntryByte(), add :
>
> Index: tif_dirread.c
> ===================================================================
> --- tif_dirread.c	(révision 24659)
> +++ tif_dirread.c	(copie de travail)
> @@ -197,6 +197,7 @@
> static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry*
> direntry, uint8* value)
> {
> 	enum TIFFReadDirEntryErr err;
> +    *value = 0;

That was my first thought (and what I will likely do) but with such 
carefully articulated code I was worried I might cover up an actual 
minor error which might be solved.

> Other track: the warning only appears with GCC 4.7.0. I tried GCC 3.4, 4.1,
> 4.3, 4.4, 4.5 and 4.6, clang 3.0 and 3.1, and none emits the warning. Perhaps
> is it a bug of GCC 4.7.0 ?

Quite possibly.  I still have not built and installed GCC 4.7.1 ...

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-1850214161-1341670428=:27589
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
---559023410-1850214161-1341670428=:27589--
