[XDK/DDK/PSDK]

* Fix a compiler (clang) warning.

svn path=/trunk/; revision=53959
This commit is contained in:
Amine Khaldi 2011-10-03 15:17:27 +00:00
parent 8065202a81
commit 1bcc18f7a7
4 changed files with 12 additions and 8 deletions

View file

@ -7713,7 +7713,9 @@ FORCEINLINE
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)

View file

@ -417,11 +417,6 @@ typedef struct _FILETIME {
# 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

View file

@ -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 @@ FORCEINLINE
VOID
MemoryBarrier(VOID)
{
LONG Barrier;
LONG Barrier, *Dummy = &Barrier;
UNREFERENCED_LOCAL_VARIABLE(Dummy);
__asm__ __volatile__("xchgl %%eax, %[Barrier]" : : [Barrier] "m" (Barrier) : "memory");
}
#endif

View file

@ -51,7 +51,9 @@ FORCEINLINE
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)