Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGYE0-0001DL-7R for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 22:05:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGYDz-0003rr-QY for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 22:05:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGYDo-0003IK-V3 for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 22:05:37 +0000 Received: from bay.acenet.us ([173.230.252.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGYDl-0005SP-3f for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 22:05:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3RrYPuhgiZgOznr4j67SNO9ZjWpQheeJH0+mRIXpV2A=; b=IdlagR8GJfll4kStw2ZymkJ8lZ EUhMJcOmFfAM2ffQ34EagvHC9e0ndGGRiW0xMQQTf3xnH104aJ7LJ7nRBZktL+97s97jxnjaLjmWm nm5n+x4tnPGDwlzc0XoCDce35739Mz+iHXyzNW9Y7L9CxLzG6B5GkBNu2z366ILw7a7vtowErIV4C 6alCum7Zb8iX5Qlbav4hh16EH/slZau5snWz5eQ7MB3MgV3NxD4bqs6yNDgHdsF6cYGdnvX/5oTz2 7ZiNdOZ7tQxc5dVh/8zLipnqm8nx1sAFFk4gLMJzHXOm/afFKabUGPVVZlE1tc5D+dlUucxbDkj8J Yo/avCvA==; Received: from [50.102.16.86] (port=52534) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dGYDg-003CES-DS; Thu, 01 Jun 2017 18:05:29 -0400 Subject: Re: [PATCH] quiet conversion warning in DatumGetFloat4 To: Tom Lane References: <592E4D04.1070609@anastigmatix.net> <5894.1496208390@sss.pgh.pa.us> <592E5ABF.8070706@anastigmatix.net> <22297.1496244978@sss.pgh.pa.us> <19039.1496353285@sss.pgh.pa.us> Cc: PostgreSQL Hackers From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <59308FA7.90107@anastigmatix.net> Date: Thu, 1 Jun 2017 18:05:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <19039.1496353285@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-96.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 06/01/17 17:41, Tom Lane wrote: > 12169 warnings generated by -Wconversion > 4106 warnings generated by -Wconversion -Wno-sign-conversion > ... > So it's better with -Wno-sign-conversion, but I'd say we're still not > going there anytime soon. On an optimistic note, there might not turn out to be anywhere near as many distinct causes; there's typically a lot of amplification. The one patch I sent in eliminated screens upon screens of warning output from the PL/Java build (I made no effort to count them, I just listened to the noise in my speakers until I heard the scrolling stop). It might be fun to see how big a chunk of the 4106 would vanish just with the first tweak to one of the causes that's mentioned in a lot of them. (Unless your figures were already after culling to distinct causes, which would sound like a more-than-casual effort.) Trouble is, after that first taste of success beyond expectation, it gets like a drug. -Chap -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers