pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Move SHA2 routines to a new generic API layer for crypto hashes
Date: Wed, 2 Dec 2020 12:21:16 +0900
Message-ID: <X8cILLWdpeSAgDr4@paquier.xyz> (raw)
In-Reply-To: <X8cGmZV/DIIFmptx@paquier.xyz>
References: <E1kkH9C-0006jA-Ub@gemulon.postgresql.org>
	<cee3df00-566a-400c-1252-67c3701f918a@oss.nttdata.com>
	<X8cGmZV/DIIFmptx@paquier.xyz>

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!
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)  latest in thread

Message-ID: <X8cILLWdpeSAgDr4@paquier.xyz>
Permalink:  ../X8cILLWdpeSAgDr4@paquier.xyz/
Also on:    postgresql.org/message-id/X8cILLWdpeSAgDr4@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, masao.fujii@oss.nttdata.com
  Subject: Re: pgsql: Move SHA2 routines to a new generic API layer for crypto hashes
  In-Reply-To: <X8cILLWdpeSAgDr4@paquier.xyz>
  References: <E1kkH9C-0006jA-Ub@gemulon.postgresql.org> <cee3df00-566a-400c-1252-67c3701f918a@oss.nttdata.com> <X8cGmZV/DIIFmptx@paquier.xyz> <X8cILLWdpeSAgDr4@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox