https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9aa73da9487abde59f0a60b41b569fcd09567339

commit 9aa73da9487abde59f0a60b41b569fcd09567339
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Mon Jan 18 22:23:24 2021 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Mon Jan 18 22:23:24 2021 +0100

    [XDK] Even the DBG_UNREFERENCED_PARAMETER() should use (void)P. Addendum to 
46ca069e.
---
 sdk/include/xdk/ntbasedef.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/include/xdk/ntbasedef.h b/sdk/include/xdk/ntbasedef.h
index 671ec27b0ec..91c926257fb 100644
--- a/sdk/include/xdk/ntbasedef.h
+++ b/sdk/include/xdk/ntbasedef.h
@@ -315,7 +315,7 @@
 
 /* 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 */

Reply via email to