Index: src/sampler.cc |
diff --git a/src/sampler.cc b/src/sampler.cc |
index 96b20f0369fbb472a8653700760e8e30d2dafb0b..efac288ee72c0870e5d1bee9b04290e94ac7ec1f 100644 |
--- a/src/sampler.cc |
+++ b/src/sampler.cc |
@@ -496,7 +496,9 @@ class SamplerThread : public Thread { |
void SampleContext(Sampler* sampler) { |
if (!SignalHandler::Installed()) return; |
pthread_t tid = sampler->platform_data()->vm_tid(); |
- pthread_kill(tid, SIGPROF); |
+ int result = pthread_kill(tid, SIGPROF); |
+ USE(result); |
+ ASSERT(result == 0); |
} |
#elif defined(__MACH__) |