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 1jY0MJ-0007px-9g for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 04:48:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jY0MI-0003ol-02 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 04:48:06 +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 1jY0MH-0003mS-Pd for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 04:48:05 +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 1jY0MD-0008FR-Un for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 04:48:05 +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 04B4lwxQ028352; Mon, 11 May 2020 00:47:58 -0400 From: Tom Lane To: Alvaro Herrera cc: Julien Rouhaud , pgsql-hackers@lists.postgresql.org Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES) In-reply-to: <20200511035925.GA7653@alvherre.pgsql> References: <20200511035925.GA7653@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Sun, 10 May 2020 23:59:25 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28350.1589172478.1@sss.pgh.pa.us> Date: Mon, 11 May 2020 00:47:58 -0400 Message-ID: <28351.1589172478@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-May-06, Alvaro Herrera wrote: >> This doesn't allow whitespace between "fall" and "through", which means >> we generate 217 such warnings currently. Or we can just use >> -Wimplicit-fallthrough=3, which does allow whitespace (among other >> detritus). > If we're OK with patching all those places, I volunteer to do so. Any > objections? Or I can keep it at level 3, which can be done with minimal > patching. If we're gonna do it at all, I think we should go for the level 4 warnings. Level 3's idea of a fallthrough comment is too liberal for my tastes... regards, tom lane