IIRC cplupluscheck catches such problem. Annoyingly it doesn't work properly in vpath builds...
Doh- that is annoying as that's almost exclusively what I use..
Master causes these warnings for me btw: /home/andres/src/postgresql/src/backend/commands/policy.c:48:19: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] static const char parse_row_security_command(const char *cmd_name); ^ /home/andres/src/postgresql/src/backend/commands/policy.c:106:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] parse_row_security_command(const char *cmd_name) ^
Right- those were noted up-thread by Andrew and are also on my list.