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 1jYpik-0000dc-Tf for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2020 11:38:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYpij-00038o-JX for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2020 11:38:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYpfg-0003FQ-L2 for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2020 11:35:32 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jYpfe-0002oh-FM for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2020 11:35:31 +0000 Received: by mail-qk1-x72d.google.com with SMTP id z80so11376666qka.0 for ; Wed, 13 May 2020 04:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qGibLX53LN8V1XHGPo66e9SLfQ6ZO8BiMJdMOKMjo1w=; b=o0Dv6aIHNBFP9ekt0hUsXi8uqh+iyO0Fs2mAZRPBetm5tKIL60d1V/N5mWJDh0ebLq 6dUVrdPn+xyAmJfWBdMg43rYmVav04h62Noj/lI0CiIP1G2CORvN7gIoLGHu67JygBC8 hYKYTmLzhZMprNY1YHstdWbbx2RyyfPtRrHrDdgB1fxEyfy0rsj8zmd7P05sP6Np38sx Nibbf5Pc4YpEAK6N9zrJjJTIhmznj6dYAnSRq5PINdHQn/lGQhjzSDk9oXK8SAEEObFU BLXYb6EhOSwQiwj8nmI757AqkfVOamkiVHhnhdBuszaJ8srpZWF2Cr0e2tsr+6ouW/Rn J9jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qGibLX53LN8V1XHGPo66e9SLfQ6ZO8BiMJdMOKMjo1w=; b=Hz6mkjfqLAjq0n6klHrZ3ARb9oI5fOtF1/U1rVqCqjdaPoFOtVePLECTVOpChp5PXT 8goHFxl7Wsq02uMMaZ/z8jg2ksgN4GEjS7pGcwrzIhjcT8WKJFnphclM6rdcs3cYhsfG 1KWS54NBcNOxpBlcSS9mrY12wa3cj2e1gX6e/s4Ih17wngtZaDOyEnsTbFWKJ4IeS7ut XcTNVtcZ5dn2FVUJk9+skLjtrXg6NDxgukipQQEsDjRw4pNJKLcYWyidFpu+4x+/2opF MRQTdiE28HhwAq1ePPDJUwG2MEOPJgNcRSaZVoa7ZCldb6T3kh+jpZjcz6QWrHkARPrz kJdw== X-Gm-Message-State: AGi0PuYhHNmVuyL1LfzEwVcIM5oU/EHbldImBjJAV/5s7nUCZ1X3U89V KiQSdeY6RodItY+XhyPRQDqm4teqU/1ypbt0jNk= X-Google-Smtp-Source: APiQypJoNJivnOUvLlI97V//JYEGIcKz0NPP52UsRFC15viNhUszyBbyE6Yn+eGZEa8WIawhBKfEFZh+SSGdXrGzsAg= X-Received: by 2002:a05:620a:13b2:: with SMTP id m18mr24164880qki.459.1589369729383; Wed, 13 May 2020 04:35:29 -0700 (PDT) MIME-Version: 1.0 References: <7193.1589317971@sss.pgh.pa.us> <20200513.171307.166314920588793962.horikyota.ntt@gmail.com> <20200513.191558.2288750702883807998.horikyota.ntt@gmail.com> In-Reply-To: <20200513.191558.2288750702883807998.horikyota.ntt@gmail.com> From: Julien Rouhaud Date: Wed, 13 May 2020 13:35:18 +0200 Message-ID: Subject: Re: Add "-Wimplicit-fallthrough" to default flags To: Kyotaro Horiguchi Cc: Andy Fan , Tom Lane , =?UTF-8?Q?=C3=81lvaro_Herrera?= , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, May 13, 2020 at 12:16 PM Kyotaro Horiguchi wrote: > > At Wed, 13 May 2020 16:17:50 +0800, Andy Fan wrote in > > On Wed, May 13, 2020 at 4:13 PM Kyotaro Horiguchi > > wrote: > > > > jsonpath_gram.c:1026:16: warning: this statement may fall through > > > [-Wimplicit-fallthrough=] > > > > if (*++yyp != '\\') > > > > ^ > > > > jsonpath_gram.c:1029:11: note: here > > > > default: > ... > > > It is generated code by bison. > > > > > > $ bison --version > > > bison (GNU Bison) 3.0.4 > > > > > > > > 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. > > Thanks. I'm happy to know that! But AFAICS 3.0.4 is the current > version of bison in AppStream and PowerTools of CentOS8... FTR I'm using bison 3.5 and I didn't hit any issue. However that may be because of ccache, as mentioned by Alvaro.