From: David Rowley <david.rowley@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve error reporting for DROP FUNCTION/PROCEDURE/AGGREGATE/RO
Date: Sat, 23 Mar 2019 15:39:56 +1300
Message-ID: <CAKJS1f89PP19eFfN3LWjP0b805tpCE1_77bMbfaxG99kcWai4Q@mail.gmail.com> (raw)
In-Reply-To: <20190323023333.tpovylk54modtlss@alap3.anarazel.de>
References: <E1h6zzT-0003ft-DD@gemulon.postgresql.org>
<20190323023333.tpovylk54modtlss@alap3.anarazel.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: david.rowley@2ndquadrant.com, andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Improve error reporting for DROP FUNCTION/PROCEDURE/AGGREGATE/RO
In-Reply-To: <CAKJS1f89PP19eFfN3LWjP0b805tpCE1_77bMbfaxG99kcWai4Q@mail.gmail.com>
References: <E1h6zzT-0003ft-DD@gemulon.postgresql.org> <20190323023333.tpovylk54modtlss@alap3.anarazel.de> <CAKJS1f89PP19eFfN3LWjP0b805tpCE1_77bMbfaxG99kcWai4Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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