[XDK] Even the DBG_UNREFERENCED_PARAMETER() should use (void)P. Addendum to 46ca069e.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 18 Jan 2021 21:23:24 +0000 (22:23 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 18 Jan 2021 21:23:24 +0000 (22:23 +0100)
sdk/include/xdk/ntbasedef.h

index 671ec27..91c9262 100644 (file)
 
 /* Use to silence unused variable warnings when it is intentional */
 #define UNREFERENCED_PARAMETER(P) ((void)(P))
-#define DBG_UNREFERENCED_PARAMETER(P) {(P)=(P);}
+#define DBG_UNREFERENCED_PARAMETER(P) ((void)(P))
 #define DBG_UNREFERENCED_LOCAL_VARIABLE(L) ((void)(L))
 
 /* Void Pointers */