From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.43]) by mx.groups.io with SMTP id smtpd.web12.29114.1585494864211890273 for ; Sun, 29 Mar 2020 08:14:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=cO/2XsFE; spf=pass (domain: arm.com, ip: 40.107.13.43, mailfrom: sami.mujawar@arm.com) 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=D28fOYwvpeUgu/Y0YVgQ9o54PeNws5hwPP4d2XFbnmI=; b=cO/2XsFE/0W4kBj+BiqaaTzOfq+K7l7i2vkJjmwRvrrdAyiQKcDODPMgwY9d5+zkRF5jREnSLVLxouYR54fgIBBKfCtRK9cBwj/LjM6e6dPb2KODyHcLCFEYPScTi+ZqVnpAIaScLxInf79PqqR6A+mYF5RnbmcsPNDGz5XS8/Q= Received: from DB6P191CA0021.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::31) by VE1PR08MB4976.eurprd08.prod.outlook.com (2603:10a6:803:105::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Sun, 29 Mar 2020 15:14:21 +0000 Received: from DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:28:cafe::6a) by DB6P191CA0021.outlook.office365.com (2603:10a6:6:28::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Sun, 29 Mar 2020 15:14:21 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT022.mail.protection.outlook.com (10.152.20.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 15:14:20 +0000 Received: ("Tessian outbound fb361fb66447:v48"); Sun, 29 Mar 2020 15:14:20 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 81890d3f0bb48d2e X-CR-MTA-TID: 64aa7808 Received: from 0018d0dd558b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EFDDCE52-A8A8-4941-8FD6-0E01246BD8CC.1; Sun, 29 Mar 2020 15:14:14 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0018d0dd558b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 29 Mar 2020 15:14:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CZQBEWmMFdILLr9KDvsoEQSAvWacacLf6cKREhXz1VJCKwJrUxCi+b44FpJUGzZxav9FsYarbm0Ya8ZN0zP2Dsoab7WlVSGWJDSd4yjSEHCFRLXlVMFxlC+Ov9X3EpAbBVqnirZcOB5yLuAoeG8GR+f0hPGwtJIVSADY0rHgw2VIbS0dx7q/xCssZgeIju7/pv/IcjZ9RkJvTY15l6SSjKXYHpLFbiQgxZwieLT0GBOvWT7VDKR4ww9WPkeCESbCt2v3692dunxPG5ysWfrBaBo6k1E9kDZE6RnGyNzRdw2ZRPkH6vfk6IaJ+qusdKdibLAWTqsjwTLr23SLax93Rw== 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=D28fOYwvpeUgu/Y0YVgQ9o54PeNws5hwPP4d2XFbnmI=; b=g1B5XTmr4ceVMUywOq8OKpk4TMbAo0o4xsK2iugW9qiLaupumPakJkJ9dnZfsWZWO4TBdnppfDQkAix4ALo6i/XDeXXE0D/gW/looX6rKg1F/E7VWTqRqlVRjW+XarI4KQ0i2ae9Nxe78RuIE0XsJZgBBO5UqX+hGE7y+fX64lBYt7h/Td3YlSyqqVEDbIyAw6R0wxh9UbMdDfnS7DVc5FiU3s62dLEylRzvt58+pUCab4GMlK7GmwAvpL9iJiPRhSMNLegdCrTwDIAVkXOaYRqES1pRFKqPONP8cirisymbzLds9zo+yCNrGP6LDKHp4m7Uqmi4Zmt66H03vjGjLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass 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=D28fOYwvpeUgu/Y0YVgQ9o54PeNws5hwPP4d2XFbnmI=; b=cO/2XsFE/0W4kBj+BiqaaTzOfq+K7l7i2vkJjmwRvrrdAyiQKcDODPMgwY9d5+zkRF5jREnSLVLxouYR54fgIBBKfCtRK9cBwj/LjM6e6dPb2KODyHcLCFEYPScTi+ZqVnpAIaScLxInf79PqqR6A+mYF5RnbmcsPNDGz5XS8/Q= Received: from AM0PR01CA0002.eurprd01.prod.exchangelabs.com (2603:10a6:208:69::15) by VI1PR08MB2815.eurprd08.prod.outlook.com (2603:10a6:802:19::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19; Sun, 29 Mar 2020 15:14:12 +0000 Received: from AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:69:cafe::4b) by AM0PR01CA0002.outlook.office365.com (2603:10a6:208:69::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Sun, 29 Mar 2020 15:14:12 +0000 Authentication-Results-Original: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT055.mail.protection.outlook.com (10.152.17.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 15:14:12 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1415.2; Sun, 29 Mar 2020 15:14:09 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Sun, 29 Mar 2020 15:14:09 +0000 Received: from E107187.Arm.com (10.57.20.21) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Sun, 29 Mar 2020 15:14:09 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , Subject: [PATCH v2 16/16] DynamicTablesPkg: Option for VS2017 static code analysis Date: Sun, 29 Mar 2020 16:13:53 +0100 Message-ID: <20200329151353.14096-17-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20200329151353.14096-1-sami.mujawar@arm.com> References: <20200329151353.14096-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;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(39850400004)(136003)(396003)(346002)(376002)(46966005)(6666004)(81166006)(8676002)(356004)(8936002)(186003)(44832011)(426003)(6916009)(26005)(81156014)(4326008)(2616005)(36756003)(86362001)(47076004)(478600001)(336012)(70206006)(7696005)(316002)(70586007)(54906003)(4744005)(5660300002)(1076003)(966005)(2906002)(82740400003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09f00d26-8405-4777-a0c5-08d7d3f3db85 X-MS-TrafficTypeDiagnostic: VI1PR08MB2815:|VE1PR08MB4976: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:421;OLM:421; X-Forefront-PRVS: 035748864E X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: +5E73VfZFcGXk+yZcvadjzBc0Yq8ZXGGfXEr0XGVxNMRJt/sqKVSryxJ+e80avqXzQGN/jyCkqXORZHJFIrD7hN9H96LlIDj/SXTHBHaC81SgLu0oaZ2o9Ws2ioySrr4Ed7ZNeN0xW8vKB/x2Tjga5onHRlO4wmh6j7dHPqQsYd3i4uGYV7CizVioyUaIBzp7/6twu/Ingdi1rr+oUCWme2Zc1n8N/dm2aZttcrOgHjMm9OxmvSIPlIbhS2xu7RR8fofPIai800NVJBtV3hwacJXVtabA2I6HRH95eEj2e+KiBwWErTD/emUbEmta4jZk5fd95hJOVQ9Ube/RWl4nv29n/3wj8lj32YK1O7elLUGb8KDrqifi6fj+EnY6wA8TD4PJRnveQQTP1WgIk4EC4YxP0Afvyoq3mJtssXT8RTgqLxzgA1thoxB0rWhX9Xl+fYM0DNnLkmqfwL3j4ctJyNhcJ6xD5GW9qEBQqid0pNpF19wYl7XBHE7ZVaCpeZ5WtUZif/dnMukW51t92oHO5Z62SWQSiXQ+ctNOa+/8L38JsXA1sZ4xzYzutojwFsnidxH2oBsuhsZIPcQJ0n5NZZ/6z1EPf9ZTZrmV9RwBcI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2815 Original-Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(136003)(346002)(376002)(396003)(39850400004)(46966005)(47076004)(186003)(316002)(82740400003)(54906003)(70586007)(70206006)(26005)(4744005)(4326008)(2616005)(6666004)(44832011)(336012)(1076003)(7696005)(426003)(26826003)(8936002)(86362001)(478600001)(2906002)(81156014)(36756003)(81166006)(966005)(6916009)(8676002)(5660300002);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: bc61b04c-bf62-44b4-3ad9-08d7d3f3d688 X-Forefront-PRVS: 035748864E X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vZXToMv42KGiPFJzn/Fp6sbPSHhznkhsPqxTMJaH60JEHr8vvGUI2Hdq8xlRlkLFm24WVRq+dUaoHlUg4OQ/LCvrNndMYpyXTgfdFBwNvRyzNg2CU0zfbyunshYfVe2NzgEu7W49SgAeBeYUEvss9po/u/yGq/vVQTNlQ1S16FZrp/b4oFK331x8DYUWxeBGvvDFlYcW8ZcsojuIV9HufsvUMcoOkxeJDU2UDDGWEVPeJOiz7vPLxMbjd2rQgjlrc+yBGXWwvWjmJM9nbMlulXQNbDr10Xwv6V678Y7vvtgZizXqPjyGMv5mPYEem5ZJvH6ZoM6mLfnM9AsySkDH0sq+CT6nTrFHFLr6LX2ZXKEsUKSNfC7JzXy7smaVzhgXcU+8UOYE1g2U6InM4n+RTdkMDNSCtNe3/ZIL3vGAdmscpCPKdwTf+IoIutcWvadtunJccPmxI0JNEviTevQ/UuHCDoNnLKT4FdgDV3wkPXE3pCZRPMUGOPQlaVpzz2BMKhE8kbJx0+6bCFp4/M+Pq/Ze/cFb1tjc9pnYNvzDoil5duthyJlbDZNfqakMIbUjMGktkYAT9xL5asdeMczik/Aym7KsKbpyFKijJLuE0pk= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2020 15:14:20.9625 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09f00d26-8405-4777-a0c5-08d7d3f3db85 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: VE1PR08MB4976 Content-Type: text/plain Add build option STATIC_ANALYSIS to enable VS2017 static code analysis. Signed-off-by: Sami Mujawar Reviewed-by: Alexei Fedorov --- Notes: v2: Splitting patch series and re-submitting DynamicTablesPkg [SAMI] patches from https://edk2.groups.io/g/devel/message/46261 DynamicTablesPkg/DynamicTablesPkg.dsc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/DynamicTablesPkg.dsc index 19beaaf370f8633efa5e37c97f6665ae4505d4e7..02f04447fffa867c602c748279c041bd566a7fd6 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dsc +++ b/DynamicTablesPkg/DynamicTablesPkg.dsc @@ -40,3 +40,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)'