Re: hba.c:3160:18: warning: comparison of unsigned enum expression

Erik Rijkers <er@xs4all.nl>

From: Erik Rijkers <er@xs4all.nl>
To: Michael Paquier <michael@paquier.xyz>, Magnus Hagander <magnus@hagander.net>
Cc: Jacob Champion <pchampion@vmware.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2021-04-07T12:18:13Z
Lists: pgsql-hackers
> On 2021.04.07. 13:57 Michael Paquier <michael@paquier.xyz> wrote:
> 
>  
> On Wed, Apr 07, 2021 at 01:24:01PM +0200, Magnus Hagander wrote:
> > On Wed, Apr 7, 2021 at 1:01 PM Erik Rijkers <er@xs4all.nl> wrote:
> > > Recently (last day or so), I get this warning from gcc 10.2:

> [gcc-hba-warning.patch]

FWIW, this fixes the warning.

(and no, I don't think I am using special gcc settings..)

Erik



Commits

  1. Refactor hba_authname

  2. Add some information about authenticated identity via log_connections