Re: pgsql: "A void function may not return a value". - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: "A void function may not return a value".
Date
Msg-id 661.1558155008@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: "A void function may not return a value".  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
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",
unlessthe 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



pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: "A void function may not return a value".
Next
From: Bruce Momjian
Date:
Subject: pgsql: docs: tighten up PG 12 release note item on 1k partitions