From patchwork Tue Nov 6 17:58:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 150319 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4192901ljp; Tue, 6 Nov 2018 09:59:58 -0800 (PST) X-Google-Smtp-Source: AJdET5fkSbSPnp6y1zdrAOkEk72/FPzoT2Sg3H0sbPxllUKOo8VnKaZSPtcbtWiI45BluXZH9XyQ X-Received: by 2002:a17:902:9a94:: with SMTP id w20-v6mr27346121plp.115.1541527198314; Tue, 06 Nov 2018 09:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527198; cv=none; d=google.com; s=arc-20160816; b=08UfWK0hVfzZPX1+ZvSyOCI96KrZwXIvgtilaX7kjv+JynzU5ZBz8glnDEh+6MHOYG hKRot8O9zxzTxMG0pYvEypyoD2AA7VtEtgpQ1gNl5BeEzaNtzv+SWME/MjwX/SdD17A4 D+8+YZDdsQpRShBXwj04nJZ7adHKL+3RrM8vPecbNkn8sQXRdOOa5aPcivce/IN4quIX dF0DmueZBiepgnffcD36PXiuDB3kMUbAHlzumJAkerOw3k1T70yvUUWkD8eW0J8/5o75 qyhJoXbGvnfj/LMfKFYORt4Z5HWOhHPBkX3CDfIAY/sXNUTOmkXTkc1F11JoONfSRpLK aUYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=LeQ/2iS/KL82W8L/ZF9Tm6xoiVU5s5QDQwpT3SdF8r4=; b=mFYEbVsx4VBvb8EeyHPk2btTls51M6U8Q9t1lgTko046uK4o/5Ipei/mI7Vi0CQLEK 4oWksoLPDuBBAktNe3nq1iJ9y7M9AQJ01+B8E9+dAlLNFoZTSKQMjQhXQ5Bj2aYpN+/R 5yMp9T0U5PEt7Jhfys3pfNriPQOcJ6wZwAoagOYdrui9hBB9MxYfXF6njOndkcdyNpGt T/9zNZV+Xr2ZqijyUF8NbHRJht5NqSEjw8++MrSphyknbvMJV/KnVfctwjM/DmAb8tQ8 m26bef3GMs+uOTODLq/YZbJX+o9+vlRl9rLQUxqlySlYVpgIc+5/ouBHfETqBoCxMV2m BNQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UoLDmYK2; 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 z3-v6si46360922pgh.250.2018.11.06.09.59.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:58 -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=UoLDmYK2; 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 92E612118D927; Tue, 6 Nov 2018 09:59:14 -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=2a00:1450:4864:20::443; helo=mail-wr1-x443.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 36D4E2118C515 for ; Tue, 6 Nov 2018 09:59:13 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id o15-v6so10943587wrv.4 for ; Tue, 06 Nov 2018 09:59:13 -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 :mime-version:content-transfer-encoding; bh=44qpO25RhPILFn5/JlKD5YNcPuymL4qRqgGRmkGXxmc=; b=UoLDmYK2gLo7Z8B9t3n1hyYUo1xQFJcL92eRRI0qrpA3vCQZ/lNx25vxd+x/JXx56s NiiXr1LkAUqkUobzVthEWSzkClONi6BcXalZY5pnjvboUYqvA3bPknifrTcME5IQJfrA WWevOA0YPViBzBcOEy7oKtc+VuktYLFxG5Qpk= 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:mime-version:content-transfer-encoding; bh=44qpO25RhPILFn5/JlKD5YNcPuymL4qRqgGRmkGXxmc=; b=YzNfz/K+i0nI1/sMCeOT+Y9/ghEjRp678azGE6Ku74/VhrXEe3KCu/9Do+WuZMD9eS WFrvIAaYt8ni0RZMIzxRyuc8U/77X8h8oKzSbOkw0E02a2scVnPFg4dq8w9w5CyhPKIL je/BZvPRav1cxuz44DzQsKuPyupNFbw+yMhZXE/fmC63ZODhrkvShuUlKaVkEQzPaaZj IZQ+lk/BvzhVQjqEnFTArzeNC9urXZzxCzc+6p/w7uJZeb0eTf9qUDe+iER7QhSdVuq5 BYPuvJ2Mm2k3f0sMmwucFUjiZzrStk1EfEI5ZFoDZodO/VlSWrgKOYlHYqjyLwgf9pm4 4sxA== X-Gm-Message-State: AGRZ1gKHPreUxiE/zQjOY5JwTQbBLU8BwcSXNjY413kEhMMqzbAaqQFG MiEbvPc9tNDt+16aK5DsZXm3A+nNzD0= X-Received: by 2002:adf:fb4b:: with SMTP id c11-v6mr23687900wrs.117.1541527151489; Tue, 06 Nov 2018 09:59:11 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id 134-v6sm2971522wmp.6.2018.11.06.09.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:10 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 6 Nov 2018 18:58:31 +0100 Message-Id: <20181106175833.26964-18-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106175833.26964-1-ard.biesheuvel@linaro.org> References: <20181106175833.26964-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-staging 17/19] IntelUndiPkg/GigUndiDxe: 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: michael.d.kinney@intel.com, eric.jin@intel.com 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/GigUndiDxe/GigUndiDxe.inf | 2 +- IntelUndiPkg/GigUndiDxe/e1000_osdep.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) -- 2.19.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/GigUndiDxe/GigUndiDxe.inf b/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf index 19dae9a0987a..9159e826ec45 100644 --- a/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf +++ b/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf @@ -41,7 +41,7 @@ ENTRY_POINT = InitializeGigUNDIDriver UNLOAD_IMAGE = GigUndiUnload [BuildOptions.common] - MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG + MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /wd4244 /wd4206 GCC:RELEASE_*_*_CC_FLAGS = -D MDEPKG_NDEBUG [BuildOptions.X64] diff --git a/IntelUndiPkg/GigUndiDxe/e1000_osdep.h b/IntelUndiPkg/GigUndiDxe/e1000_osdep.h index 4408b409a445..70f33811dd04 100644 --- a/IntelUndiPkg/GigUndiDxe/e1000_osdep.h +++ b/IntelUndiPkg/GigUndiDxe/e1000_osdep.h @@ -34,9 +34,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#pragma warning(disable : 4244) -#pragma warning(disable : 4206) - #ifndef EFI_SPECIFICATION_VERSION #define EFI_SPECIFICATION_VERSION 0x00020000 #endif /* EFI_SPECIFICATION_VERSION */