Re: pgsql: "A void function may not return a value".

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: "A void function may not return a value".
Дата
Msg-id 20190518044435.dpwg3aar43emt57w@alap3.anarazel.de
обсуждение исходный текст
Ответ на pgsql: "A void function may not return a value".  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: "A void function may not return a value".  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Hi,

On 2019-05-18 04:40:51 +0000, Tom Lane wrote:
> "A void function may not return a value".

Darn.  Thanks.

           For C only, warn about a "return" statement with an expression in a function whose return type is "void",
unlessthe expression type is also
 
           "void".  As a GNU extension, the latter case is accepted without a warning unless -Wpedantic is used.

And no, no thanks to you gcc. -pedantic is entirely unusable. It warns
about extensions we explicitly test for :(

- Andres



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: "A void function may not return a value".
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: "A void function may not return a value".