Bug 623122 - CurrentThreadId does not have a return for an unreachable exit path (missing return); r=ted a=bsmedberg
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Fri, 21 Jan 2011 14:12:21 -0500
changeset 61098 b17f28507ab402e155819cd7921b37d454f2680d
parent 61097 b0c917ad881b815fc1ba6d06fadb95f03d9a221b
child 61099 49b68a67b57537980d8203dce696392776bbf914
push idunknown
push userunknown
push dateunknown
reviewersted, bsmedberg
bugs623122
milestone2.0b10pre
Bug 623122 - CurrentThreadId does not have a return for an unreachable exit path (missing return); r=ted a=bsmedberg
toolkit/crashreporter/nsExceptionHandler.cpp
--- a/toolkit/crashreporter/nsExceptionHandler.cpp
+++ b/toolkit/crashreporter/nsExceptionHandler.cpp
@@ -2004,16 +2004,17 @@ CurrentThreadId()
 
   if (task_threads(mach_task_self(), &threads_for_task, &thread_count))
     return -1;
 
   for (unsigned int i = 0; i < thread_count; ++i) {
     if (threads_for_task[i] == mach_thread_self())
       return i;
   }
+  abort();
 #else
 #  error "Unsupported platform"
 #endif
 }
 
 bool
 CreatePairedMinidumps(ProcessHandle childPid,
                       ThreadId childBlamedThread,