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

From: Erik Rijkers <er(at)xs4all(dot)nl>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: hba.c:3160:18: warning: comparison of unsigned enum expression
Date: 2021-04-07 11:00:48
Message-ID: 1056399262.13159.1617793249020@webmailclassic.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2021-04-07 11:24:01 Re: hba.c:3160:18: warning: comparison of unsigned enum expression
Previous Message Michael Paquier 2021-04-07 10:50:09 Re: Why is specifying oids = false multiple times in create table is silently ignored?