From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::443; helo=mail-pf1-x443.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0: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 AEA7C2119174B for ; Wed, 14 Nov 2018 18:34:25 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id e22-v6so8891811pfn.8 for ; Wed, 14 Nov 2018 18:34:25 -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=0IorxIYjadZ4Li2CjTz2X7oFgFQWcxWOd0aU1nkc8ps=; b=b2hsqn2Nn3NIElASyd2jpsSz1cj2U3hDx6cDAUTg4GRsWiX38kLDM1+3u+Uvel8wM3 mffsu/NPvyo7kp7qpV+Kmn+eof6z6DInVGSEN+AUb6grh68vZ9nv6gWCeXUl3BKNIx7W oskSTraZ/nOeQmPl4SieT6+rp6zk67YEAmPWY= 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=0IorxIYjadZ4Li2CjTz2X7oFgFQWcxWOd0aU1nkc8ps=; b=p5pLrUbGP/z3YP8+R1/vpWVO7CBpCnaFGRQXpJWTXdHLnbfwardAeR8rwpaqbbO4DX 4PDa6UxoLceCR9mIazyB83v8YpMU8scwfyDetMAtxo/UY5eP+e+8memfB9LmxQ1bvpfD n5GcyqNbZymBjgMThaZ2xeZhTTLbgK0d/QWvzB+Hc1Zk3F2L+8ez5L1Qa/t1k4XU5F0P JIICrQt9s8OgAEbB98k/UAeC11cMXkBcVLx+6reL/i9NvxTGotdAWRhG3PUv0qGdnId/ AB5gLYxI1DI+/hGP6+qRn7rxK3zX1yNbISdYh13zA+P0dgWcVMnKCJvyHR/4qARoV+qN j+wg== X-Gm-Message-State: AGRZ1gKmlGdz7vWgVNCuStWxSsxGBn2SR/yKYffE035tQObaZ5wcWaUY 0iUV1IDiMvOrANWt8R7IIoa4R8IXXnsb7Q== X-Google-Smtp-Source: AJdET5c9+UjboYQJtrKKTWpGcyeYqDPMzHzSQWUI3prd9spgE9UbxWF//0u5ddFObywCmKwiPrKIKw== X-Received: by 2002:a63:920a:: with SMTP id o10mr4001965pgd.141.1542249265114; Wed, 14 Nov 2018 18:34:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:24 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, maciej.rabeda@intel.com, kamil.kacperski@intel.com, pawel.orlowski@intel.com, philmd@redhat.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com, eric.jin@intel.com, Ard Biesheuvel Date: Wed, 14 Nov 2018 18:33:53 -0800 Message-Id: <20181115023353.20159-21-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: [PATCH edk2-staging 20/20] IntelUndiPkg/XGigUndiDxe: avoid unused var warnings for ERROR_REPORTn() 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: , X-List-Received-Date: Thu, 15 Nov 2018 02:34:25 -0000 We hit unused variable warnings since the various ERROR_REPORTn() macros resolve to nothing. So instead, map them to the macros that were created to prevent these warnings. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h index aa3b3543cb79..02eb6fe7f67b 100644 --- a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h +++ b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h @@ -451,7 +451,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT(S,A) +#define ERROR_REPORT(S,A) UNREFERENCED_1PARAMETER(A) /** ERROR_REPORT1 wrapper macro for shared code, blank here @@ -461,7 +461,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT1(S,A) +#define ERROR_REPORT1(S,A) UNREFERENCED_1PARAMETER(A) /** ERROR_REPORT2 wrapper macro for shared code, blank here @@ -472,7 +472,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT2(S,A,B) +#define ERROR_REPORT2(S,A,B) UNREFERENCED_2PARAMETER(A,B) /** ERROR_REPORT3 wrapper macro for shared code, blank here @@ -484,7 +484,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT3(S,A,B,C) +#define ERROR_REPORT3(S,A,B,C) UNREFERENCED_3PARAMETER(A,B,C) /** Macro for word conversion from CPU native to Big Endian -- 2.17.1