Re: pgsql: Improve error reporting for DROP FUNCTION/PROCEDURE/AGGREGATE/RO

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pgsql: Improve error reporting for DROP FUNCTION/PROCEDURE/AGGREGATE/RO
Дата
Msg-id CAKJS1f89PP19eFfN3LWjP0b805tpCE1_77bMbfaxG99kcWai4Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Improve error reporting for DROPFUNCTION/PROCEDURE/AGGREGATE/RO  (Andres Freund <andres@anarazel.de>)
Ответы Re: pgsql: Improve error reporting for DROP FUNCTION/PROCEDURE/AGGREGATE/RO  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Sat, 23 Mar 2019 at 15:33, Andres Freund <andres@anarazel.de> wrote:
> I now get:
>
> /home/andres/src/postgresql/src/backend/parser/parse_func.c: In function ‘LookupFuncWithArgs’:
> /home/andres/src/postgresql/src/backend/parser/parse_func.c:2285:5: warning: this statement may fall through
[-Wimplicit-fallthrough=]
>      switch (objtype)
>      ^~~~~~
> /home/andres/src/postgresql/src/backend/parser/parse_func.c:2336:4: note: here
>     case FUNCLOOKUP_AMBIGUOUS:
>     ^~~~
>
> which seems like a somewhat righteous complaint? I'd just add a break to
> silence it (which can't be reached, because all paths ought to error
> out).

hmm. Surprised your compiler can't see that's not possible. I guess we
just need a break on line 2335.

--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Improve error reporting for DROPFUNCTION/PROCEDURE/AGGREGATE/RO
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Expand EPQ tests for UPDATEs and DELETEs