From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=6qDUg4Xx; spf=pass (domain: arm.com, ip: 40.107.5.54, mailfrom: sami.mujawar@arm.com) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.54]) by groups.io with SMTP; Fri, 23 Aug 2019 03:57:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mhimAzKFh+AHqnQA/IDer7qMAJLKoemw9/3MUAA66wI=; b=6qDUg4XxOXH4bDB6rNM6rz7aD0i9+NxfH+MDwM7kxHXgZPWpdCrqx62FhIodFmdazG9mNu08RtgIrmMttUoyXPMlELjuP2YIXg4Hsrf2qVC5Exq0DWJ7m+6DmnDB8E8lq+4yifPC6jzwxg67W+3ok/JRyoHs+3rXLnsAR3h9PMI= Received: from VI1PR08CA0172.eurprd08.prod.outlook.com (2603:10a6:800:d1::26) by VI1PR0802MB2607.eurprd08.prod.outlook.com (2603:10a6:800:b9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Fri, 23 Aug 2019 10:57:51 +0000 Received: from VE1EUR03FT064.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::203) by VI1PR08CA0172.outlook.office365.com (2603:10a6:800:d1::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.15 via Frontend Transport; Fri, 23 Aug 2019 10:57:51 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT064.mail.protection.outlook.com (10.152.19.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.13 via Frontend Transport; Fri, 23 Aug 2019 10:57:50 +0000 Received: ("Tessian outbound 4f2e8f9f1994:v27"); Fri, 23 Aug 2019 10:57:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c3ffd1a2db8ec085 X-CR-MTA-TID: 64aa7808 Received: from 049cf6c35f46.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.6.56]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0AA85F50-9D27-46A8-9836-F56CB86A7888.1; Fri, 23 Aug 2019 10:57:45 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02lp2056.outbound.protection.outlook.com [104.47.6.56]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 049cf6c35f46.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 23 Aug 2019 10:57:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ts28U19XvfFCt0HaFeh51oGl25e2Dwm6c04MCRAkmtNoysDZL/lsIN/6bYw88UPBBfRuX89VgHiPKT4g+ToRnOD+NM2dY2ljq+gLAskh+hPNgUuPZf45m81opeWzn3U9bZMYWapeGZ2nNMcwugrRSUPph9nDM4fYecjzvFS4Hg4ZfjuPPben2ryLnxg26M1KpUkmLOrBHL/5iql9YgWqZwuxsL46Tvny+Rfn36O4Fs2f/ikuxKikylX7eYB/aIYTrV7B4DiM2HxoeWQKsr5Ivx7dt69pUMVPmMPhQKivjfjNqOlnlHk/P9PTGCrAeTrIAxkC8a/KDaiJ1ENrgcIKjA== 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-SenderADCheck; bh=mhimAzKFh+AHqnQA/IDer7qMAJLKoemw9/3MUAA66wI=; b=Yy3ENPey7oMClkIyYv6BNLCTessAY/ebKd7II4xYTb7eGDVCG8vLtKERraE5Af3sEnLFTPp3ZTm8W1g9xOp884COVxMBCAkM5icTw81rvqb1jF/iT5VeXQHufssHj+1GDlrSSPdek4bTIbhBL5jFM7nPWw/sYh571gTE1GOUP9WVo4++utZkJkv4oAXHjIvtV2UmcJcsZKgmQus5S6wCaQGyC2ZYlfh+dGkqWLdOJfjpjGeuYikF+NC2TBqBRXC9Rjl47qi5M8/VG31SefprCsdSY8vrMdJU6OJB575/EHXClK+3Hc4gRI4dYX18adusiuK6vt7g+fsDvnR6bneCKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=temperror action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mhimAzKFh+AHqnQA/IDer7qMAJLKoemw9/3MUAA66wI=; b=6qDUg4XxOXH4bDB6rNM6rz7aD0i9+NxfH+MDwM7kxHXgZPWpdCrqx62FhIodFmdazG9mNu08RtgIrmMttUoyXPMlELjuP2YIXg4Hsrf2qVC5Exq0DWJ7m+6DmnDB8E8lq+4yifPC6jzwxg67W+3ok/JRyoHs+3rXLnsAR3h9PMI= Received: from VI1PR08CA0139.eurprd08.prod.outlook.com (10.175.229.17) by VE1PR08MB4958.eurprd08.prod.outlook.com (10.255.158.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.20; Fri, 23 Aug 2019 10:57:41 +0000 Received: from AM5EUR03FT017.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::204) by VI1PR08CA0139.outlook.office365.com (2603:10a6:800:d5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.14 via Frontend Transport; Fri, 23 Aug 2019 10:57:41 +0000 Authentication-Results-Original: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT017.mail.protection.outlook.com (10.152.16.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2199.13 via Frontend Transport; Fri, 23 Aug 2019 10:57:39 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Fri, 23 Aug 2019 10:56:26 +0000 Received: from E107187.Arm.com (10.1.195.55) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Fri, 23 Aug 2019 10:56:26 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , Subject: [PATCH v1 16/19] DynamicTablesPkg: Option for VS2017 static code analysis Date: Fri, 23 Aug 2019 11:55:36 +0100 Message-ID: <20190823105539.13260-17-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20190823105539.13260-1-sami.mujawar@arm.com> References: <20190823105539.13260-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;IPV:NLI;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(346002)(136003)(396003)(39860400002)(376002)(2980300002)(199004)(189003)(53416004)(478600001)(2351001)(36756003)(6666004)(356004)(54906003)(5660300002)(1076003)(6916009)(2906002)(316002)(16586007)(47776003)(86362001)(53936002)(50466002)(48376002)(4326008)(81166006)(81156014)(305945005)(8676002)(186003)(26005)(50226002)(2616005)(11346002)(446003)(486006)(126002)(70206006)(70586007)(336012)(426003)(63370400001)(63350400001)(7696005)(44832011)(8936002)(476003)(76176011)(14444005)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4958;H:nebula.arm.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9961c5e-70e6-4a1f-4e0d-08d727b8bdbe X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328);SRVR:VE1PR08MB4958; X-MS-TrafficTypeDiagnostic: VE1PR08MB4958:|VI1PR0802MB2607: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:361;OLM:361; X-Forefront-PRVS: 0138CD935C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: oWbZ+1yPweFfZQH9uhfPeqNRtgwmiWN6VbGk40lpq9RmOGfPGNgbSbAQC1w4YsnwMKvKLSMyy7simU/xgEoai/CCL81WPsEcS5flOMzT1+SQSB89VMjDpOWStJtVUwYiTYFY7ZU8SH0TbGyiM0mZB5psuE0ia7aVfOJyH1C37xp+EWiZ734US2rUTrW3giPHmg7KIKXC6Gg4t4d8FZR/kp9PJAMhk0rJUxX8zDmvQ2oqZmfz51OI/B22sPAD90aVaPwRaSx6Q8+Z2ZLM8gQmCfivgfQQdA3+G2gohWoimJ+SUJnS6c1FgNjfEqe/sDpTgLrM8XbA2w1+MoZPSTvOy8NeTKOqxsRbvSCF5Nwj/K6QaQ0m0CLcvomIL37goynBdrdlNTCOSYghaNiwgzsOn+xV8M53C6NUV5SmHWFalqY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4958 Original-Authentication-Results: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT064.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(396003)(136003)(39860400002)(2980300002)(199004)(189003)(36756003)(76130400001)(6666004)(6916009)(486006)(8936002)(48376002)(1076003)(81166006)(22756006)(5660300002)(44832011)(81156014)(54906003)(86362001)(8676002)(316002)(305945005)(36906005)(50466002)(53416004)(70586007)(426003)(2906002)(336012)(26005)(4326008)(76176011)(16586007)(186003)(2351001)(51416003)(7696005)(50226002)(2616005)(478600001)(126002)(11346002)(26826003)(476003)(70206006)(63350400001)(14444005)(47776003)(446003)(63370400001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0802MB2607;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:TempError;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;A:1;MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: a2116554-2999-4645-8878-08d727b8b715 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(2017052603328);SRVR:VI1PR0802MB2607; NoDisclaimer: True X-Forefront-PRVS: 0138CD935C X-Microsoft-Antispam-Message-Info: Q9dz3O6gO5VkcqlKYxj7CST44CyPxUYRgmuvehriE3itK2lyQzOCT/qlvMQI3lOg5wRE6XNY8hj3Mm6damMhUlf5zVWEJ0KD8y0+5O128iTDyv4wuKMxJRnA6XbuipySPMdx4ZPKtqVlY2j7Dt5R9J6MOE+N6uazsSfHk8F9D+N4SHgOfA50WJxCoddJ0LOAlramtfhcFEENRM/BdJEbl5jbZNpkLg/LkRBQjyJKSqKRnqwZbDWHXBvwxxqLBu2PhV/BU6C+NCyM1hxNhSBb3unhM0rG5FfcW8OW7WsHOOESs87StOMjPW1CPfHYt1qDuXzHzmbdwDJpj2ALn6YgJzyFnq/T6YTvOxnKHcjIjdf5DOIHk7yhTg1OJL70WH+6bADmo9QsxZ+Ty3vN4ThBWD8RkPH3dNCmig29K8XXR94= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2019 10:57:50.5804 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9961c5e-70e6-4a1f-4e0d-08d727b8bdbe X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2607 Content-Type: text/plain Add build option STATIC_ANALYSIS to enable VS2017 static code analysis. Signed-off-by: Sami Mujawar --- DynamicTablesPkg/DynamicTablesPkg.dsc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/DynamicTablesPkg.dsc index dfe6c07111059cdd3eed23becf5000c04270bd9c..6ff6ff019e080f355ca24c9d05f71f8b85ab9077 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dsc +++ b/DynamicTablesPkg/DynamicTablesPkg.dsc @@ -4,7 +4,7 @@ # Copyright (c) 2019, Linaro Limited. All rights reserved.
# Copyright (c) 2019, ARM Limited. All rights reserved.
# -# SPDX-License-Identifier: BSD-2-Clause-Patent +# SPDX-License-Identifier: BSD-2-Clause-Patent # ## @@ -39,3 +39,10 @@ [Components.common] [BuildOptions] *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES + +!ifdef STATIC_ANALYSIS + # Check all rules + # Inhibit C6305: Potential mismatch between sizeof and countof quantities. + *_VS2017_*_CC_FLAGS = /wd6305 /analyze +!endif + -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'