From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Binderman <dcb314@hotmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ?
Date: Fri, 06 Oct 2017 11:07:28 -0400
Message-ID: <13799.1507302448@sss.pgh.pa.us> (raw)
In-Reply-To: <HE1PR0802MB233122B61F00A15E035C83BE9C710@HE1PR0802MB2331.eurprd08.prod.outlook.com>
References: <HE1PR0802MB233122B61F00A15E035C83BE9C710@HE1PR0802MB2331.eurprd08.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
David Binderman <dcb314@hotmail.com> writes:
> postgresql-10.0/src/bin/psql/mainloop.c:461] -> [postgresql-10.0/src/bin/psql/mainloop.c:465]: (warning) Opposite inner 'if' condition leads to a dead code block.
Huh ... that code's been like that since 2006. Odd that nothing's
noticed the dead-ness before. What tool were you using?
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, dcb314@hotmail.com
Subject: Re: postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ?
In-Reply-To: <13799.1507302448@sss.pgh.pa.us>
References: <HE1PR0802MB233122B61F00A15E035C83BE9C710@HE1PR0802MB2331.eurprd08.prod.outlook.com> <13799.1507302448@sss.pgh.pa.us>
* 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