Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkItk-0000IO-4C for pgsql-committers@arkaria.postgresql.org; Wed, 02 Dec 2020 03:33:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkItj-0002Ka-2p for pgsql-committers@arkaria.postgresql.org; Wed, 02 Dec 2020 03:33:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkIti-0002KT-U2 for pgsql-committers@lists.postgresql.org; Wed, 02 Dec 2020 03:33:42 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkItb-0005x0-Fz for pgsql-committers@lists.postgresql.org; Wed, 02 Dec 2020 03:33:42 +0000 Received: from hnk.local (p1295030-ipngn4902funabasi.chiba.ocn.ne.jp [153.166.85.30]) by oss.nttdata.com (Postfix) with ESMTPSA id 8DF716017B; Wed, 2 Dec 2020 12:33:30 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: pgsql: Move SHA2 routines to a new generic API layer for crypto hashes To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org References: From: Fujii Masao Message-ID: <50c5867b-d078-076a-b556-99996246367f@oss.nttdata.com> Date: Wed, 2 Dec 2020 12:33:30 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/12/02 12:21, Michael Paquier wrote: > On Wed, Dec 02, 2020 at 12:14:33PM +0900, Michael Paquier wrote: >> Neither gcc nor clang complain on my end, even with >> -Werror=maybe-uninitialized, because they understand that the status >> will be set anyway as we have no default in the switch? :) >> >> You are right, this is bad practice for those code paths, so let's fix >> it. Which version are you using? I'd like to be able to reproduce >> that and double-check if there are more missing spots. > > Hmm. Forget that. I can see the warnings once I switched to -O2, > which is what I guess you are doing. Some animals are also showing > that. I'll fix in a minute. Thanks for the report! Thanks! FWIW, I got that failure when I built PostgreSQL in github actions using yml file [1]. The default setting -O2 is used there. Since -Werror is used, I got the compiler failure than warning. [1] https://github.com/MasaoFujii/my-bin/blob/master/data/build.yml Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION