diff mbox series

[edk2,edk2-staging,20/20] IntelUndiPkg/XGigUndiDxe: avoid unused var warnings for ERROR_REPORTn()

Message ID 20181115023353.20159-21-ard.biesheuvel@linaro.org
State New
Headers show
Series IntelUndiPkg/XGigUndiDxe: fix GCC / ARM build issues | expand

Commit Message

Ard Biesheuvel Nov. 15, 2018, 2:33 a.m. UTC
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 <ard.biesheuvel@linaro.org>

---
 IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.17.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

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