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 1jNeUE-00030g-ML for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2020 15:25:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNeUD-00062F-JZ for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2020 15:25:29 +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 1jNeUD-000628-7U for pgsql-hackers@lists.postgresql.org; Sun, 12 Apr 2020 15:25:29 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jNeU9-00034E-Mx for pgsql-hackers@lists.postgresql.org; Sun, 12 Apr 2020 15:25:28 +0000 Received: by mail-pg1-x544.google.com with SMTP id w11so3392149pga.12 for ; Sun, 12 Apr 2020 08:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zwMxDQGewx0lpKHP/a3G4zKdHbxVErP8axhGAWGH4OM=; b=QBe+Go0nyL9nNfBCWNrYvvgtCE9aHMdmZdn4xNoLPLvWhJmpyBSNjbH///XW2Wzd9+ 7epBP/nztHWPSQpf9BKvBopHEnqWf2zoka/tT+eg4RXuBV/jor/v43w2bBozWmKOl5pS Zwlc78bR4vdllY4Pg+sF1bpeUGWTEkflBTMUM2BiJujFQutpwRBpZnBgF0qDzG22s4go VfQ8jLW9XmBMPPDKdujV1+hGy2gmTzKWCfEw0IVkITTzygMlVipDGA/Q78PK9CcyvPHp zG8dPAnAVrUTln6KYCWaMdmFLjOqj4holN8QHA0yRu4zemAoEpsNyDDdEYOfCRsbtHcv gtqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zwMxDQGewx0lpKHP/a3G4zKdHbxVErP8axhGAWGH4OM=; b=RaxLAfSnL5Q2Dcmab/ekt4+H97/qq+9Km/3GlmX/4cmslMdGpj4rRRQ00iefi4XO5B W+1B5osSvevglTZBaUScrIHuwvmvNkOVB9Dhah8uKuIG/ApaOQGBm7If8ItlwmkmyNO+ tPYP6kAwDZzOa9Qd3HfxLpyDibWCL7zXqEzzJBYytNxmvwhJDBTdaDRnwb65a1XdMXFH vdLRL/bB4oNAFqLXXz6nKcVyG5dE5AMkgiRCRnO2XBTTBzQnY3O8RjzcWeIb3RtsrTu9 VPi7DPEAB3LJvWxXzvQAiUPM3uvysQp3v2pkDT7WJmbupcnwBjKLVtjF4JG9086v14zr i9Rg== X-Gm-Message-State: AGi0PuZ4TSK5nq+QsRjoMAKfjxCL5lF/ZZDs/cNUa458Y6QS81sMlL6s 41U8wG5lqPy0twd2sZhufWxrY0UOUbsDjgwgkmZBgT1TD0zENj0k0pxpRXxx3JF3EYbMwB/0IC9 S19kGDBSOC7li2cvl5KuEr8QLAaN6saQiFEES6ZMFeobXWXsGt7NsSMIvu+vSAsIe6fcQLgrx2V H0UorgAFovQCNd8YWH+WTgYj0SNSidt/FOMIxWz7q6nnAlR/yawjQ= X-Google-Smtp-Source: APiQypKqiCo4ZcWfGZ+4C2RxUjcb+MX0TwwWs0O+6e7BuXTY2geZ99mon7lBOxxm3RwvUUu9HleApQ== X-Received: by 2002:a62:2bcb:: with SMTP id r194mr14286273pfr.277.1586705122250; Sun, 12 Apr 2020 08:25:22 -0700 (PDT) Received: from [192.168.0.29] (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id e7sm6625220pfj.97.2020.04.12.08.25.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Apr 2020 08:25:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES) From: Mark Dilger In-Reply-To: <15010.1586703320@sss.pgh.pa.us> Date: Sun, 12 Apr 2020 08:25:21 -0700 Cc: Julien Rouhaud , "pgsql-hackers@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <25206.1586630854@sss.pgh.pa.us> <20200412081825.qyo5vwwco3fv4gdo@nol> <15010.1586703320@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.80.23.2.2) X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Apr 12, 2020, at 7:55 AM, Tom Lane wrote: >=20 > Poking around in the archives, it seems like the only previous formal > proposal to add -Wimplicit-fallthrough was in the context of a much > more aggressive proposal to make a lot of non-Wall warnings into > errors [1], which people did not like. That was from me. > The only more-restrictive alternative, short of disabling > the comments altogether, is >=20 > * -Wimplicit-fallthrough=3D4 case sensitively matches one of = the > following regular expressions: >=20 > *<"-fallthrough"> > *<"@fallthrough@"> > *<"lint -fallthrough[ \t]*"> > *<"[ \t]*FALLTHR(OUGH|U)[ \t]*"> >=20 > Thoughts? Naturally, I'm +1 for this. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company