mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[XDK/DDK/PSDK]
* Fix a compiler (clang) warning. svn path=/trunk/; revision=53959
This commit is contained in:
parent
8065202a81
commit
1bcc18f7a7
4 changed files with 12 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue