From patchwork Thu Nov 15 02:33:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151139 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6453347ljp; Wed, 14 Nov 2018 18:34:10 -0800 (PST) X-Google-Smtp-Source: AJdET5dTYlsDjv67IBNaLgO2nZBEWvaVqNY55yfso31U9ukOGe/f2q6hfVt2QFNjVPIarQyUoZi/ X-Received: by 2002:a63:b94c:: with SMTP id v12mr4066799pgo.221.1542249250753; Wed, 14 Nov 2018 18:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249250; cv=none; d=google.com; s=arc-20160816; b=SQZCz8MM6x90eOckfUv8bmkS58fF6eEeM3vYZudCvq3KREyYJroN62n7jUvMciVxs9 ikdeBpBem0/pBJ/+pa0xLIZnkkQMKpQ+ZXIve3rrFYXdlV7UxKLP66cx4TYeiC0GtREq GfNtJb7HUJ8WREmafK3Sg/2KOtkEqY3tYogoyRn/n6UUWdT+ztWeroRjVmxf6SMvBcKt W32nkCsKpqsr0TxUMW/tzuFOqiJjnM5CraPRQo+eC/bTgQGlO3FcYKTNYRimp3yPWEMe rIx/sUXOc68ihb3yJlC8ryvZXqh4eV862FRtGUq1NqPYZKKgobNrqzopx9rF4tlrwcxp ymwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=Y5+inHnvP1/GXlOW2CCRyFouZeGF2CK3nbrMVv85QYc=; b=neCZYBIyVtWQd5NpuGBlUpGDY8+mWTZ7U1pKOinxBfI37SDC23JE2C/dwhXt4BvSc/ /INWw7s6mTAYX1KUMvRFspSgFBhlDoZaYXyoaX9MAyyOvjiurj7BM0F8AMmJg9BmyKAw JXLw+pvRUbW3oYb+YCIg+25hmMHulYIswQ9qRcCpwZhTXFg96MjQlGCryosVxUOfUJU3 NOPgamRQhTzic5SxaSoYXHVqJ5ehCyIoECWneoqOnAYe2ZB9X05+HZc5x44yseq6gEMr cjByxO0DnTeUvmevyoasxczYQDLV7L8+uuZqRoA88UZ/WyX4r7woq4kzFYGJHnE2IVHy bGog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jBUQ5AsD; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id bj11si5994571plb.21.2018.11.14.18.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jBUQ5AsD; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3549921190731; Wed, 14 Nov 2018 18:34:06 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::642; helo=mail-pl1-x642.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A60DF2119072E for ; Wed, 14 Nov 2018 18:34:04 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id x21-v6so5999019pln.9 for ; Wed, 14 Nov 2018 18:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o/uUvk5YwqjuXUYCcdafYa4Qd+sp+YtBKsgBVSe1XkQ=; b=jBUQ5AsDxSAtMims9DE7QUXp+54JS1GJbuXef4ZgLxLNjyfdzvAkCF8zq8mSLxzDjq yYbbEddt/LUNJN0FAXftxb9yYxDPmNkSt3drGrnPpR8hqN8/M1HZwnQBOccxkPxSEdvO pPC7i++X6Yk0aa7xatSXOordOksNqa/e+qji0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o/uUvk5YwqjuXUYCcdafYa4Qd+sp+YtBKsgBVSe1XkQ=; b=kpV/aUX2ealflhDjDUemVr9JDwEVCc3ieeYgracB8AttjqzQoqy3E+oE5V1dEAiQLj bmJB9MBo7LRmsJiDq0wbQZGCeUbyytxSBsK8sjWzkjsrHr2n2aJ/CiiqaS3pvKgbpx9D 8zEB5VtZdMEB1iyn7K1F+7hUCfw7WKscnoSDjzdNA5IEJHSXu5tVO1AmGHsmwhsOAUs+ iqL/8t1D/KhgUIGlrlx6pyNu4K7X2c0UdOTHdPTNH/TyJRpILmMAzbxm4xjprWjzNbc5 jartGBbGHXoo+27ZoJMZGQkRHxHtRnTQpP834bsoATXEOt04iHwqNE/OWyadSNe27Fq9 w0Yw== X-Gm-Message-State: AGRZ1gIGlcLtygj2DbRQ2W20h/IV2iZs8T3GQ82xG3PwmaRtWqqjbo5c i5A1rdpvAkcnedQ0eTyfNQzYwCi9qZuwgg== X-Received: by 2002:a17:902:9897:: with SMTP id s23-v6mr4504944plp.229.1542249244091; Wed, 14 Nov 2018 18:34:04 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:03 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:35 -0800 Message-Id: <20181115023353.20159-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-staging 02/20] IntelUndiPkg/XGigUndiDxe: move MSFT warning overrides to INF file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" GCC chokes on the unknown MSVC specific #pragmas used for suppressing warnings, so remove them and use the INF BuildOptions section instead. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf | 4 ++-- IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ryszard Knop diff --git a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf index ab9c64dac7e8..7ccc52bc9869 100644 --- a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf +++ b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf @@ -44,7 +44,7 @@ UNLOAD_IMAGE = UnloadXGigUndiDriver [BuildOptions.common] -MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G +MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G /wd4244 /wd4206 /wd4189 GCC:*_*_*_CC_FLAGS = -DUNDI_10G GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG @@ -60,7 +60,7 @@ GCC:*_*_*_CC_FLAGS = -DEFI64 [BuildOptions.IA32] -MSFT:*_*_*_CC_FLAGS = /D EFI32 +MSFT:*_*_*_CC_FLAGS = /D EFI32 /wd4305 GCC:*_*_*_CC_FLAGS = -DEFI32 [sources.common] diff --git a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h index 6fa0d1605c7c..368f40811904 100644 --- a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h +++ b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h @@ -29,16 +29,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef IXGBE_OSDEP_H_ #define IXGBE_OSDEP_H_ -#pragma warning(disable : 4244) -#pragma warning(disable : 4206) -#pragma warning(disable : 4189) - -#ifdef EFI32 - -// Remove truncation warning in type cast when some 64 bit variables are converted to 32-bit pointers -#pragma warning(disable : 4305) -#endif /* EFI32 */ - #ifndef EFI_SPECIFICATION_VERSION #define EFI_SPECIFICATION_VERSION 0x00020000 #endif /* EFI_SPECIFICATION_VERSION */