From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a01:111:f400:fe1f::61d; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=evan.lloyd@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::61d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 535392112120C for ; Wed, 20 Jun 2018 10:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o93EqdlwrWx6AGf87Fjd51W9eUG8WWDWwssEDeb1feo=; b=JJKn7DeB7uvqB8RAUlo2ddHF0NOL5eLsk7DnvvpoJXQaN9NaD4GvVzBdD0+eJPWjJuqc+cFeOpMFo5PSF6mjH/GesjWkyFbe1wVHaSr3MvVG5tGj9t7Nu1mQE3Uixw5I99t2W/dENoPcJuaWEyYmOFwYnvn6f6c+C3kBIso7JFQ= Received: from DB6PR08MB2806.eurprd08.prod.outlook.com (10.170.222.149) by DB6PR08MB2680.eurprd08.prod.outlook.com (10.175.235.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Wed, 20 Jun 2018 17:48:49 +0000 Received: from DB6PR08MB2806.eurprd08.prod.outlook.com ([fe80::c9e1:cd4d:545f:649d]) by DB6PR08MB2806.eurprd08.prod.outlook.com ([fe80::c9e1:cd4d:545f:649d%2]) with mapi id 15.20.0863.016; Wed, 20 Jun 2018 17:48:49 +0000 From: Evan Lloyd To: Ard Biesheuvel , Leif Lindholm CC: nd , "edk2-devel@lists.01.org" , Stephanie Hughes-Fitt , Matteo Carlini Thread-Topic: Query about variable initialization Thread-Index: AdQIvuyvHqbZ/86mRlSO6W7+jHPa6A== Date: Wed, 20 Jun 2018 17:48:49 +0000 Message-ID: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Evan.Lloyd@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR08MB2680; 7:a93EORS/I88oLE3c7P08LcabemIhBrpPdeMLAKWj2Bsvz0QGy73Rq6p+RQ223H58vfEonEFI9jAu+pcczl6L9wqWonusDVAZ3WrMgY8KaMmZt51/flDwLdCPpm7lHBEHcK+SK3aRWrFDp3lXbY8Co2aojd3GUNykl+212XJLyyfkwzxBW+Ycwb63EqMImNkaEPa4o4ETNH1UgVWD8BiK5097jKqLzMw9bd+UC1DtZ49k6pTyGw0a+2+ENP5JnuyB x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 2c069001-6915-47ad-923f-08d5d6d61480 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR08MB2680; x-ms-traffictypediagnostic: DB6PR08MB2680: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB6PR08MB2680; BCL:0; PCL:0; RULEID:; SRVR:DB6PR08MB2680; x-forefront-prvs: 070912876F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(346002)(366004)(376002)(199004)(189003)(305945005)(53936002)(316002)(59450400001)(4326008)(102836004)(5660300001)(14454004)(478600001)(106356001)(72206003)(55016002)(26005)(6436002)(33656002)(7736002)(5250100002)(105586002)(6506007)(9686003)(86362001)(97736004)(186003)(54906003)(68736007)(3660700001)(3480700004)(2906002)(6116002)(81166006)(81156014)(486006)(3846002)(66066001)(8676002)(74316002)(110136005)(8936002)(25786009)(7696005)(99286004)(2900100001)(476003)(3280700002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR08MB2680; H:DB6PR08MB2806.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jYkBgGQeVqofmXyEtIODmB/mgRAsErA7UTCIwlWP7BVgV6DgdVtLfPCz4G+VcquXPq4qYXEOs5IjkZTqmNoTrGd8NcCgASogdAnXZcj0PPEmr821n8Dp44yuJdzagAjczrQa9kSjRjprfgvpq9KJSMFH2B3IzXTC31Im0jo+bvuXT6P9yTPKY76P9+dotujopIo/B4SVYQY+EOJ0fCgSuTEdEAND6EJK8pKnnjfGMTpVKaEN2cvecdo5S0Mx475u7TLmlg/DJ5OzNNRU8NS8XPg5Ju7ZqF2/AuVbOxTbvpjULIgOtjhGMwsm6kbe7QgYdFdu3L3ESiZZ1cHumFgZHQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c069001-6915-47ad-923f-08d5d6d61480 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2018 17:48:49.7171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR08MB2680 Subject: Query about variable initialization X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2018 17:48:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Ard, Leif. I've noticed a number of comments like Ard's recent "We don't permit initia= lized automatic variables.", and similar changes have been made to Sami's AcpiView. Note: I'm not objec= ting to doing it the way maintainers prefer, which is why this is not a res= ponse. My understanding was that the CCS was changed some time back to remove the = restriction on initializing variables (and I further think I remember Leif = being a prime mover in that). If that is the case, I suspect the real problem is with ECC.py, which still= whinges about it, so probably needs fixing. Can you confirm that I haven't got a firm grasp on the wrong end of the sti= ck, please? Regards, Evan 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'