pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: "A void function may not return a value".
3+ messages / 2 participants
[nested] [flat]
* pgsql: "A void function may not return a value".
@ 2019-05-18 04:40 Tom Lane <tgl@sss.pgh.pa.us>
2019-05-18 04:44 ` Re: pgsql: "A void function may not return a value". Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2019-05-18 04:40 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
"A void function may not return a value".
Per buildfarm.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d307954a7d88ed45655d9206bbe1aefc280c09c7
Modified Files
--------------
src/backend/access/table/tableam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: "A void function may not return a value".
2019-05-18 04:40 pgsql: "A void function may not return a value". Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-05-18 04:44 ` Andres Freund <andres@anarazel.de>
2019-05-18 04:50 ` Re: pgsql: "A void function may not return a value". Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Andres Freund @ 2019-05-18 04:44 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
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", unless the 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: "A void function may not return a value".
2019-05-18 04:40 pgsql: "A void function may not return a value". Tom Lane <tgl@sss.pgh.pa.us>
2019-05-18 04:44 ` Re: pgsql: "A void function may not return a value". Andres Freund <andres@anarazel.de>
@ 2019-05-18 04:50 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2019-05-18 04:50 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers@lists.postgresql.org
Andres Freund <andres@anarazel.de> writes:
> 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", unless the expression type is also
> "void". As a GNU extension, the latter case is accepted without a warning unless -Wpedantic is used.
The scary thing is that apparently almost everybody else has followed
gcc's lead on this.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-05-18 04:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-18 04:40 pgsql: "A void function may not return a value". Tom Lane <tgl@sss.pgh.pa.us>
2019-05-18 04:44 ` Andres Freund <andres@anarazel.de>
2019-05-18 04:50 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox