Michael Stefaniuc : kernel32/ntdll: Mark a variable as unused.

Alexandre Julliard julliard at winehq.org
Fri Oct 28 12:48:38 CDT 2011


Module: wine
Branch: master
Commit: 68f90d9697f66f4b0d928c899a5caf70fbce2187
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68f90d9697f66f4b0d928c899a5caf70fbce2187

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Oct 28 17:04:33 2011 +0200

kernel32/ntdll: Mark a variable as unused.

---

 dlls/kernel32/virtual.c  |    2 +-
 dlls/ntdll/virtual.c     |    2 +-
 include/wine/exception.h |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/kernel32/virtual.c b/dlls/kernel32/virtual.c
index 6328399..c878ed8 100644
--- a/dlls/kernel32/virtual.c
+++ b/dlls/kernel32/virtual.c
@@ -650,7 +650,7 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size )
     __TRY
     {
         volatile const char *p = ptr;
-        char dummy;
+        char dummy __attribute__((unused));
         UINT count = size;
 
         while (count > page_size)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 054b924..7185f14 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1651,7 +1651,7 @@ BOOL virtual_check_buffer_for_read( const void *ptr, SIZE_T size )
     __TRY
     {
         volatile const char *p = ptr;
-        char dummy;
+        char dummy __attribute__((unused));
         SIZE_T count = size;
 
         while (count > page_size)
diff --git a/include/wine/exception.h b/include/wine/exception.h
index 469083f..9115fc9 100644
--- a/include/wine/exception.h
+++ b/include/wine/exception.h
@@ -69,6 +69,10 @@ extern "C" {
  * -- AJ
  */
 
+#ifndef __GNUC__
+#define __attribute__(x) /* nothing */
+#endif
+
 /* 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
  * compiler exceptions will most certainly not work under Winelib.
@@ -84,10 +88,6 @@ extern "C" {
 
 #else  /* USE_COMPILER_EXCEPTIONS */
 
-#ifndef __GNUC__
-#define __attribute__(x) /* nothing */
-#endif
-
 #if defined(__MINGW32__) || defined(__CYGWIN__)
 #define sigjmp_buf jmp_buf
 #define sigsetjmp(buf,sigs) setjmp(buf)




More information about the wine-cvs mailing list