Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-q.one.com (mx-q.one.com [91.198.169.248])
	by mail6.b-one.net (Postfix) with ESMTP id CA83F8017F7F3
	for <filtered@awaresystems.be>; Fri,  6 Jul 2012 22:00:28 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-q: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.213.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-yx0-f176.google.com (mail-yx0-f176.google.com [209.85.213.176])
	by mx-q.one.com (Postfix) with ESMTP id 66EA95BB88D
	for <filtered@awaresystems.be>; Fri,  6 Jul 2012 20:00:28 +0000 (UTC)
Received: by yenl5 with SMTP id l5so11388035yen.21
        for <filtered@awaresystems.be>; Fri, 06 Jul 2012 13:00:27 -0700 (PDT)
Received: by 10.66.75.97 with SMTP id b1mr47569453paw.15.1341604826930;
        Fri, 06 Jul 2012 13:00:26 -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 u14csp80651wfl;
        Fri, 6 Jul 2012 13:00:26 -0700 (PDT)
Received: by 10.68.194.4 with SMTP id hs4mr39421692pbc.128.1341604825149;
        Fri, 06 Jul 2012 13:00:25 -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.56 as permitted sender) client-ip=91.198.169.56;
Received: by 10.68.208.108 with POP3 id md12mf14295515pbc.23;
        Fri, 06 Jul 2012 13:00:24 -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-i.one.com (mx-i.one.com [91.198.169.56])
	by mail6.b-one.net (Postfix) with ESMTP id AD79A8017F7F8
	for <info@awaresystems.be>; Fri,  6 Jul 2012 21:56:28 +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-i.one.com (Postfix) with ESMTP id 565F0256692
	for <info@awaresystems.be>; Fri,  6 Jul 2012 19:56:28 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 5EBEB1EDB47;
	Fri,  6 Jul 2012 14:55:01 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id DF7861EDB47
	for <tiff@lists.maptools.org>; Fri,  6 Jul 2012 14:28:56 -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
	q66JSscO029272
	for <tiff@lists.maptools.org>; Fri, 6 Jul 2012 14:28:54 -0500 (CDT)
Date: Fri, 6 Jul 2012 14:28:54 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Tiff List <tiff@lists.maptools.org>
Message-ID: <alpine.GSO.2.01.1207061419280.27589@freddy.simplesystems.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Fri, 06 Jul 2012 14:28:54 -0500 (CDT)
Subject: [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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

With libtiff CVS, GCC 4.7.0 produces this remaining warning when 
compiling the library:

../libtiff/tif_dirread.c: In function 'TIFFFetchNormalTag':
../libtiff/tif_dirread.c:4770:23: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]

It would be easy to quench this warning the easy way but I think that 
it would mask an error in the error handling logic.  I have not yet 
found the origin of the error.  It is useful to find the origin of the 
problem so that a proper error may be returned rather than using 
canned wrong data.

These are the compilation flags I am using with GCC 4.7.0

-g -g3 -ggdb -O2 -Wall -Winline -W -Wformat-security -Wpointer-arith 
-Wdisabled-optimization -Wno-unknown-pragmas

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
