Author: akhaldi
Date: Mon Oct 3 15:17:27 2011
New Revision: 53959
URL:
http://svn.reactos.org/svn/reactos?rev=53959&view=rev
Log:
[XDK/DDK/PSDK]
* Fix a compiler (clang) warning.
Modified:
trunk/reactos/include/ddk/wdm.h
trunk/reactos/include/psdk/windef.h
trunk/reactos/include/psdk/winnt.h
trunk/reactos/include/xdk/x86/ke.h
Modified: trunk/reactos/include/ddk/wdm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=5395…
==============================================================================
--- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Mon Oct 3 15:17:27 2011
@@ -7713,7 +7713,9 @@
VOID
KeMemoryBarrier(VOID)
{
- volatile LONG Barrier;
+ LONG Barrier, *Dummy = &Barrier;
+ UNREFERENCED_LOCAL_VARIABLE(Dummy);
+
#if defined(__GNUC__)
__asm__ __volatile__ ("xchg %%eax, %0" : : "m" (Barrier) :
"%eax");
#elif defined(_MSC_VER)
Modified: trunk/reactos/include/psdk/windef.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/windef.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/windef.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/windef.h [iso-8859-1] Mon Oct 3 15:17:27 2011
@@ -417,11 +417,6 @@
# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
#endif
-#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
-#define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
-#define DBG_UNREFERENCED_PARAMETER(P)
-#define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
-
#ifndef __WATCOMC__
#ifndef _export
#define _export
Modified: trunk/reactos/include/psdk/winnt.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=5…
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Mon Oct 3 15:17:27 2011
@@ -66,6 +66,10 @@
#endif
#endif /* __ANONYMOUS_DEFINED */
+#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
+#define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
+#define DBG_UNREFERENCED_PARAMETER(P)
+#define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
#ifndef DECLSPEC_ALIGN
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
@@ -5251,7 +5255,8 @@
VOID
MemoryBarrier(VOID)
{
- LONG Barrier;
+ LONG Barrier, *Dummy = &Barrier;
+ UNREFERENCED_LOCAL_VARIABLE(Dummy);
__asm__ __volatile__("xchgl %%eax, %[Barrier]" : : [Barrier] "m"
(Barrier) : "memory");
}
#endif
Modified: trunk/reactos/include/xdk/x86/ke.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/xdk/x86/ke.h?rev=5…
==============================================================================
--- trunk/reactos/include/xdk/x86/ke.h [iso-8859-1] (original)
+++ trunk/reactos/include/xdk/x86/ke.h [iso-8859-1] Mon Oct 3 15:17:27 2011
@@ -51,7 +51,9 @@
VOID
KeMemoryBarrier(VOID)
{
- volatile LONG Barrier;
+ LONG Barrier, *Dummy = &Barrier;
+ UNREFERENCED_LOCAL_VARIABLE(Dummy);
+
#if defined(__GNUC__)
__asm__ __volatile__ ("xchg %%eax, %0" : : "m" (Barrier) :
"%eax");
#elif defined(_MSC_VER)