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 1jXzbr-0006ay-Qv for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 04:00:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jXzbL-0004W1-1W for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 03:59:35 +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 1jXzbK-0004Vu-Qn for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 03:59:34 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jXzbE-0007L1-Ny for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 03:59:33 +0000 Received: by mail-qv1-xf44.google.com with SMTP id x13so1992819qvr.2 for ; Sun, 10 May 2020 20:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=FhE3cnbakc7s+PUAdENyb1sHKcQ6dcsT5Dt3ucPGKaw=; b=N555NC77SIwPEZP4OAy0jXkLZ++xvFV1Q5G5L/Lr4iQYnVK/heYCPdMOMuHP8dMsMp 13EgO5COtPNsHmfnBKlt7srOzV5XOLTokoZNlnwH7wctpeBs9pcXiisi8D+ZMVuwvvZp UwFMeNc+pquQS+lSjJEaWYJqDYDCl/jVvugjchnZJPGkgUzMTWUtfohXD7PJ+bY7ro00 gtD+mCoURZwTKaUdlFigymdZ4MRoyhC0k8/2552PQNditBs0s0pHTuJlO5EqW7JP0lwY RLoVI3rsua1ADoZe0VHIP5HO6Q3MC11yZI+OTQ0LYSLAuhMlz4l56h8ViEU6r1H1Hj6x z+WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=FhE3cnbakc7s+PUAdENyb1sHKcQ6dcsT5Dt3ucPGKaw=; b=Wl6CIRqbYJHfsjcCVt/xoHO2dYe7OLf/th5lOISdsDo1cZPAjX6bcnEit0X3ycXwD6 OV6wgDfqkH9G+ep6mfZF38lP9PNWV7K9+RQK3q22fw72m57TfFti9txpX1hSEsxg07js Pf2zmEgwpPGt80fxWYWxDNJj5yNnnXeEiiekAXz395UGbJcUH+mrIymIw1txBTsQ2hti jwdFpO8QdvzJng3nSKP87gaFgXKv+FAHE+gVUvZs/ui0jZMHEOFozV8O5XaWY03QnlET prfPDjMg3+KRW1jWHc/HjRXLvX1K3o8hCcrfi7zAs7dnZjF7eeg0GvMazGzxSAxkHMtD oRsg== X-Gm-Message-State: AGi0PuY9JaVkIfQJBHHAlqCWlk9rh7Bc9ZWVJl2YI4mXKHk22/vfoicv n1I9OmoF/BkIcU6bhd3edC+bug== X-Google-Smtp-Source: APiQypJwHKYjG1QzGz0U+KzdyG//PQsMNfHyD8tGRsKoBVogfjgk3khmXbIhpBKeku66sW5jKYLPBA== X-Received: by 2002:ad4:5449:: with SMTP id h9mr13778218qvt.108.1589169567864; Sun, 10 May 2020 20:59:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id t88sm1876938qtd.5.2020.05.10.20.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 20:59:27 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6A82C30081B; Sun, 10 May 2020 23:59:25 -0400 (-04) Date: Sun, 10 May 2020 23:59:25 -0400 From: Alvaro Herrera To: Tom Lane Cc: Julien Rouhaud , pgsql-hackers@lists.postgresql.org Subject: Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES) Message-ID: <20200511035925.GA7653@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200506233903.GA24861@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-May-06, Alvaro Herrera wrote: > This doesn't allow whitespace between "fall" and "through", which means > we generate 217 such warnings currently. Or we can just use > -Wimplicit-fallthrough=3, which does allow whitespace (among other > detritus). If we're OK with patching all those places, I volunteer to do so. Any objections? Or I can keep it at level 3, which can be done with minimal patching. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services