Re: hba.c:3160:18: warning: comparison of unsigned enum expression - Mailing list pgsql-hackers

From Erik Rijkers
Subject Re: hba.c:3160:18: warning: comparison of unsigned enum expression
Date
Msg-id 32380915.14810.1617797893491@webmailclassic.xs4all.nl
Whole thread Raw
In response to Re: hba.c:3160:18: warning: comparison of unsigned enum expression  (Michael Paquier <michael@paquier.xyz>)
List 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



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: hba.c:3160:18: warning: comparison of unsigned enum expression
Next
From: Magnus Hagander
Date:
Subject: Re: hba.c:3160:18: warning: comparison of unsigned enum expression