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 1jY9bc-0006QN-O8 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 14:40:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jY9ba-0000Sq-S3 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 14:40:30 +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 1jY9ba-0000Si-Km for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 14:40:30 +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 1jY9bY-0006wX-28 for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 14:40:29 +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 04BEeNNk002520; Mon, 11 May 2020 10:40:23 -0400 From: Tom Lane To: Julien Rouhaud cc: Alvaro Herrera , PostgreSQL Hackers Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES) In-reply-to: References: <20200511035925.GA7653@alvherre.pgsql> <28351.1589172478@sss.pgh.pa.us> <28994.1589204480@sss.pgh.pa.us> Comments: In-reply-to Julien Rouhaud message dated "Mon, 11 May 2020 16:07:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2518.1589208023.1@sss.pgh.pa.us> Date: Mon, 11 May 2020 10:40:23 -0400 Message-ID: <2519.1589208023@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Julien Rouhaud writes: > On Mon, May 11, 2020 at 3:41 PM Tom Lane wrote: >> Why? It uses "fallthrough" which is a legal spelling per level 4. > GCC documentation mentions [ \t]*FALLTHR(OUGH|U)[ \t]* for level 4 > (out of the view other alternatives), which AFAICT is case sensitive > (level 3 has fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?). Oh, I'd missed that that was case sensitive. Ugh --- that seems unreasonable. Maybe we'd better settle for level 3 after all; I don't think there's much room to doubt the intentions of a comment spelled that way. regards, tom lane