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

Поиск
Список
Период
Сортировка
От Erik Rijkers
Тема hba.c:3160:18: warning: comparison of unsigned enum expression
Дата
Msg-id 1056399262.13159.1617793249020@webmailclassic.xs4all.nl
обсуждение исходный текст
Ответы Re: hba.c:3160:18: warning: comparison of unsigned enum expression
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Why is specifying oids = false multiple times in create table is silently ignored?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: hba.c:3160:18: warning: comparison of unsigned enum expression