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 1jYry8-0004r6-S0 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2020 14:02:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYry7-0000ne-O4 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2020 14:02:43 +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 1jYry7-0000nT-He for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2020 14:02:43 +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 1jYry3-0006p9-2A for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2020 14:02:40 +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 04DE2YgA031167; Wed, 13 May 2020 10:02:34 -0400 From: Tom Lane To: Andy Fan cc: Kyotaro Horiguchi , Alvaro Herrera , Julien Rouhaud , PostgreSQL Hackers Subject: Re: Add "-Wimplicit-fallthrough" to default flags In-reply-to: References: <20200512202524.GA30825@alvherre.pgsql> <7193.1589317971@sss.pgh.pa.us> <20200513.171307.166314920588793962.horikyota.ntt@gmail.com> Comments: In-reply-to Andy Fan message dated "Wed, 13 May 2020 16:17:50 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31165.1589378554.1@sss.pgh.pa.us> Date: Wed, 13 May 2020 10:02:34 -0400 Message-ID: <31166.1589378554@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andy Fan writes: >> FWIW, I got a warning for jsonpath_gram.c. Ugh. Confirmed here on Fedora 30 (bison 3.0.5). > I just found this just serval minutes ago. Upgrading your bison to the > latest version (3.6) is ok. I'd like we have a better way to share this > knowledge through. I spend ~30 minutes to troubleshooting this issue. I fear that is going to mean that we revert this patch. We are *NOT* moving the minimum bison requirement for this, especially not to a bleeding-edge bison version. Alternatively, it might work to go back down to warning level 3; I see that the code in question has /* Fall through. */ which I believe would work at the lower warning level. But that raises the question of how far back bison generates code that is clean --- and, again, I'm not willing to move the minimum bison requirement. (On the other hand, if you have an old bison, you likely also have an old gcc that doesn't know this warning switch, so maybe it'd be all right in practice?) regards, tom lane