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 1jYbzm-0005Yg-E9 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 20:59:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYbzl-0001h3-Af for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 20:59:21 +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 1jYbzl-0001gw-3k for pgsql-hackers@lists.postgresql.org; Tue, 12 May 2020 20:59:21 +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 1jYbzh-0001aC-HB for pgsql-hackers@lists.postgresql.org; Tue, 12 May 2020 20:59:20 +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 04CKxFqm006591; Tue, 12 May 2020 16:59:15 -0400 From: Tom Lane To: Alvaro Herrera cc: Julien Rouhaud , PostgreSQL Hackers Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES) In-reply-to: <20200512201451.GA6186@alvherre.pgsql> References: <20200512201451.GA6186@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 12 May 2020 16:14:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6589.1589317155.1@sss.pgh.pa.us> Date: Tue, 12 May 2020 16:59:15 -0400 Message-ID: <6590.1589317155@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > I ended up using level 4 and dialling back to 3 for zic.c only > (different make trickery though). Meh ... if we're going to use level 4, I'm inclined to just change zic.c to match. It's not like we're using the upstream code verbatim anyway. We could easily add s/fallthrough/FALLTHROUGH/ to the conversion recipe. > I get no warnings with this (gcc 8), but ccache seems to save warnings > in one run so that they can be thrown in a later one. I'm not sure what > to make of that, but ccache -d proved that beyond reasonable doubt and > ccache -clear got rid of the lot. Sounds like a ccache bug: maybe it's not accounting for different fallthrough warning levels. ccache knows a *ton* about gcc options, so I'd not be surprised if it's doing something special with this one. regards, tom lane