Return-Path: util-linux-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:44190 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753733AbdFMVCI (ORCPT ); Tue, 13 Jun 2017 17:02:08 -0400 Date: Tue, 13 Jun 2017 23:02:04 +0200 From: Karel Zak To: =?iso-8859-1?Q?R=FCdiger?= Meier Cc: kerolasa@gmail.com, util-linux Subject: Re: [PATCH 01/11] misc: fallthrough fixes Message-ID: <20170613210204.3rrulvs3abjy6ekp@ws.net.home> References: <55d88bf2-3c67-4d79-984e-b16d6b835702@gmx.de> <4ae98acb-325d-39dd-faa9-2cdf8ce62c3e@gmx.de> <20170613125115.yq7a63ngzpk2hiod@ws.net.home> <20170613134115.2bko6uejkrna65j6@ws.net.home> <35f6001e-ab3e-e96d-c872-67869ec8c3d6@gmx.de> <20170613200000.ravhgjs7kvqnhihq@ws.net.home> <3f62e452-cbd6-bbf1-6aa1-9ecd5ae66ff7@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <3f62e452-cbd6-bbf1-6aa1-9ecd5ae66ff7@gmx.de> Sender: util-linux-owner@vger.kernel.org List-ID: On Tue, Jun 13, 2017 at 10:11:29PM +0200, Rüdiger Meier wrote: > On 06/13/2017 10:00 PM, Karel Zak wrote: > > On Tue, Jun 13, 2017 at 04:52:20PM +0200, Rüdiger Meier wrote: > > > > sounds all we need is to add -Wimplicit-fallthrough=3 to ./configur > > > No, -Wimplicit-fallthrough=3 is what we have already now by default. > > > Just tested. Without doing anything "/* fallthrough */" disables the > > > warning. But Sami fixed also other comments and places without comments. > > > > > > So we could simply use "/* fallthrough */" everythere. > > > > Yes, that's what I mean (don't use the macro at all). > > > > Sami, can you update the patch and replace __ul_fallthrough with > > /* fallthrough */ ? > > > > Karel > > > > I've used one sed command on Sami's patch and submitted via github > https://github.com/karelzak/util-linux/pull/456 Applied, thanks! Karel -- Karel Zak http://karelzak.blogspot.com