Refactor hba_authname
Magnus Hagander <magnus@hagander.net>
Refactor hba_authname The previous implementation (from 9afffcb833) had an unnecessary check on the boundaries of the enum which trigtered compile warnings. To clean it up, move the pre-existing static assert to a central location and call that. Reported-By: Erik Rijkers Reviewed-By: Michael Paquier Discussion: https://postgr.es/m/1056399262.13159.1617793249020@webmailclassic.xs4all.nl
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/auth.c | modified | +1 −1 |
| src/backend/libpq/hba.c | modified | +7 −18 |
| src/include/libpq/hba.h | modified | +1 −1 |
Discussion
- hba.c:3160:18: warning: comparison of unsigned enum expression 9 messages · 2021-04-07