Commit 68f90d96 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

kernel32/ntdll: Mark a variable as unused.

parent 0a20ec09
...@@ -650,7 +650,7 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size ) ...@@ -650,7 +650,7 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size )
__TRY __TRY
{ {
volatile const char *p = ptr; volatile const char *p = ptr;
char dummy; char dummy __attribute__((unused));
UINT count = size; UINT count = size;
while (count > page_size) while (count > page_size)
......
...@@ -1651,7 +1651,7 @@ BOOL virtual_check_buffer_for_read( const void *ptr, SIZE_T size ) ...@@ -1651,7 +1651,7 @@ BOOL virtual_check_buffer_for_read( const void *ptr, SIZE_T size )
__TRY __TRY
{ {
volatile const char *p = ptr; volatile const char *p = ptr;
char dummy; char dummy __attribute__((unused));
SIZE_T count = size; SIZE_T count = size;
while (count > page_size) while (count > page_size)
......
...@@ -69,6 +69,10 @@ extern "C" { ...@@ -69,6 +69,10 @@ extern "C" {
* -- AJ * -- AJ
*/ */
#ifndef __GNUC__
#define __attribute__(x) /* nothing */
#endif
/* Define this if you want to use your compiler built-in __try/__except support. /* Define this if you want to use your compiler built-in __try/__except support.
* This is only useful when compiling to a native Windows binary, as the built-in * This is only useful when compiling to a native Windows binary, as the built-in
* compiler exceptions will most certainly not work under Winelib. * compiler exceptions will most certainly not work under Winelib.
...@@ -84,10 +88,6 @@ extern "C" { ...@@ -84,10 +88,6 @@ extern "C" {
#else /* USE_COMPILER_EXCEPTIONS */ #else /* USE_COMPILER_EXCEPTIONS */
#ifndef __GNUC__
#define __attribute__(x) /* nothing */
#endif
#if defined(__MINGW32__) || defined(__CYGWIN__) #if defined(__MINGW32__) || defined(__CYGWIN__)
#define sigjmp_buf jmp_buf #define sigjmp_buf jmp_buf
#define sigsetjmp(buf,sigs) setjmp(buf) #define sigsetjmp(buf,sigs) setjmp(buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment