Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNHqX-0005wW-Q0 for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Apr 2020 15:15:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNHqW-0000QX-CH for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Apr 2020 15:15:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNHqW-0000QQ-4u for pgsql-hackers@lists.postgresql.org; Sat, 11 Apr 2020 15:15:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNHqT-0008Gb-R5 for pgsql-hackers@postgresql.org; Sat, 11 Apr 2020 15:14:59 +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 03BFEqlG027482; Sat, 11 Apr 2020 11:14:53 -0400 From: Tom Lane To: Noah Misch cc: Andrew Dunstan , PostgreSQL-development Subject: Re: cleaning perl code In-reply-to: <20200411043014.GA590991@rfd.leadboat.com> References: <20200411043014.GA590991@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sat, 11 Apr 2020 04:30:14 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27480.1586618092.1@sss.pgh.pa.us> Date: Sat, 11 Apr 2020 11:14:52 -0400 Message-ID: <27481.1586618092@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > In summary, among those warnings, I see non-negative value in "Code before > warnings are enabled" only. While we're changing this, I propose removing > Subroutines::RequireFinalReturn. If it's possible to turn off just that warning, then +several. It's routinely caused buildfarm failures, yet I can detect exactly no value in it. If there were sufficient cross-procedural analysis backing it to detect whether any caller examines the subroutine's result value, then it'd be worth having. But there isn't, so those extra returns are just pedantic verbosity. regards, tom lane