Fix a couple of warnings in appdomain.c and threads.c.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Mon, 10 Jun 2013 10:47:40 +0000 (12:47 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Mon, 10 Jun 2013 10:47:40 +0000 (12:47 +0200)
mono/metadata/appdomain.c
mono/metadata/threads.c

index 14189f1ced35d3cabffc4b6a22bf0b56916a09ed..c653ad7082c8d4799f7c44c0d338d4d316a77525 100644 (file)
@@ -2364,7 +2364,6 @@ mono_domain_try_unload (MonoDomain *domain, MonoObject **exc)
 {
        HANDLE thread_handle;
        gsize tid;
-       guint32 res;
        MonoAppDomainState prev_state;
        MonoMethod *method;
        unload_data thread_data;
index 809a9bfc84ecca7fb48e57a57877e6f190b749e6..85c9d65150702af96908c576702dd1a2b198cc63 100644 (file)
@@ -831,8 +831,6 @@ __readfsdword (unsigned long long offset)
 void
 mono_thread_get_stack_bounds (guint8 **staddr, size_t *stsize)
 {
-       *staddr = NULL;
-       *stsize = 0;
 #if defined(HAVE_PTHREAD_GET_STACKSIZE_NP) && defined(HAVE_PTHREAD_GET_STACKADDR_NP)
        *staddr = (guint8*)pthread_get_stackaddr_np (pthread_self ());
        *stsize = pthread_get_stacksize_np (pthread_self ());
@@ -899,7 +897,7 @@ mono_thread_get_stack_bounds (guint8 **staddr, size_t *stsize)
 
        /* When running under emacs, sometimes staddr is not aligned to a page size */
        *staddr = (guint8*)((gssize)*staddr & ~(mono_pagesize () - 1));
-}      
+}
 
 MonoThread *
 mono_thread_attach (MonoDomain *domain)