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

From Erik Rijkers
Subject hba.c:3160:18: warning: comparison of unsigned enum expression
Date
Msg-id 1056399262.13159.1617793249020@webmailclassic.xs4all.nl
Whole thread Raw
Responses Re: hba.c:3160:18: warning: comparison of unsigned enum expression
List pgsql-hackers
Recently (last day or so), I get this warning from gcc 10.2:

-----
hba.c:3160:18: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
        if (auth_method < 0 || USER_AUTH_LAST < auth_method)
            ~~~~~~~~~~~ ^ ~
1 warning generated.
-----

Erik



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Why is specifying oids = false multiple times in create table is silently ignored?
Next
From: Magnus Hagander
Date:
Subject: Re: hba.c:3160:18: warning: comparison of unsigned enum expression