Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0UDw-0006Za-6k for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 15:07:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0UDv-0002id-9v for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 15:07:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0UDu-0002hm-BK for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 15:07:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0UDr-00089b-SO for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 15:07:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v96F7SZr013800; Fri, 6 Oct 2017 11:07:28 -0400 From: Tom Lane To: David Binderman cc: "pgsql-bugs@postgresql.org" Subject: Re: postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ? In-reply-to: References: Comments: In-reply-to David Binderman message dated "Fri, 06 Oct 2017 07:21:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13798.1507302448.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 06 Oct 2017 11:07:28 -0400 Message-ID: <13799.1507302448@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David Binderman 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 de= ad 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs