[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MOVING COMMUNITY CALL Call for agenda items for 9 June Community Call @ 1500 UTC
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Andrew.Cooper3@xxxxxxxxxx
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 7 Jun 2022 08:21:11 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PBUU9tjmVFGmXSma0OP00HIuqU3SrVJmCUAbmMc5LX0=; b=ZYTBSMtPcwAQMWZ+7kWY2uvjSfxoqQ7JgNN3wEGpiaN7jFIEXJTOTE1pWpXusSsBHermF+Gj/g33k43tVenKcsjZ8xdYyD1vOoEqpJUBi72gSel0mpM/kauFcoJr2U4jItq+aP3CaiQM80eQQbP9+A3cEI7lLFTsttMQLPFccTHpzh14fvXgIgeI1pCGS6NcOsS2JPeTmLFvSCMVYWRHN7RUwxw6lN160zaT9C4bqdN+SNEog4Dr5mTFfzxNA3eUObQrkTpehhbfUH0do1qnzBJD8Lkbx3Jng5Ut0I2JQzurWHnLeSJc7DUdgiSZdXuLjcfxK1mKZiI9ttCTJiMWrw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GrHXvYJ/rFqVK0yvY+N/5UIVOiBCIGh88W292UUEO4/VimFRZ6AaDbIn4bcAb0oWjcnp5XmcPxt6+FDRq4wqFa+Yni8fPjiYR4m3Of9V2zuMnw8VziKhY6QOAY1m5LIxL5hg4kDFfcFcw5y0ZcT9AtgAx84V9Ms+LXWf9fI1nf96E0JX+9jOoFETlXX6Lghcx2gfU55TFT3UU00FC8ENmekH5xdE8dTw6l26nkt9lmv+tEQNTzByre2DVFxrIJD03sUPzsfO3gaWHmQ52ful2NhorBRGDMslHvacmuQ0lkvTueXTZmMSJAs2Gah0pUbvD9laGRtlsFW2pWyK8lqzOA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: George Dunlap <George.Dunlap@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>, julien@xxxxxxx, Bertrand.Marquis@xxxxxxx, fusa-sig@xxxxxxxxxxxxxxxxxxxx, roberto.bagnara@xxxxxxxxxxx
- Delivery-date: Tue, 07 Jun 2022 06:21:31 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 07.06.2022 04:17, Stefano Stabellini wrote:
> # Rule 9.4 "An element of an object shall not be initialized more than once"
>
> Andrew was noting that "There's one pattern using range syntax to set a
> default where this rule would be violated, but the code is far cleaner
> to read."
I'm actually not sure we have such uses, as I seem to vaguely recall clang
warning about them. Off the top of your head, do you know of an instance,
Andrew?
Jan
> Range initializers is a GCC extension not part of the C standard. It is
> not considered by the MISRA rule. The MISRA rule seems focused on
> preveting accidental double-initializations (by copy/pasting errors for
> instance) which is fair.
>
> So I think we should be OK here and we need to clarify our usage of
> range initializers. What we do or don't do with range initializer should
> be a separate discussion I think.
>
|