ntdll: fix a compiler-warning on platforms other than x86

André Hentschel nerv at dawncrow.de
Tue Nov 10 15:22:54 CST 2009


this static function is only used in __i386__
---
 dlls/ntdll/virtual.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index f568eee..955d5df 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1658,6 +1658,7 @@ struct free_range
     char *limit;
 };
 
+#ifdef __i386__
 /* free reserved areas above the limit; callback for wine_mmap_enum_reserved_areas */
 static int free_reserved_memory( void *base, size_t size, void *arg )
 {
@@ -1674,6 +1675,7 @@ static int free_reserved_memory( void *base, size_t size, void *arg )
     remove_reserved_area( base, size );
     return 1;  /* stop enumeration since the list has changed */
 }
+#endif
 
 /***********************************************************************
  *           virtual_release_address_space
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list