diff options
| author | Grissiom <[email protected]> | 2014-04-12 16:33:35 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2014-04-12 16:33:35 +0800 |
| commit | 1b878f256f0570ce26932930428945d872406b03 (patch) | |
| tree | 5e4ca4d702b697e0753617445d2b0ac637d80ce8 /examples/kernel/mutex_simple.c | |
| parent | 0c4ac4bd1a93ac1406f87f1d108c54bf14f57d28 (diff) | |
examples/kernel: fix warnings issued by Clang
Fix some "unused variable" and "used before set" warnings.
Diffstat (limited to 'examples/kernel/mutex_simple.c')
| -rw-r--r-- | examples/kernel/mutex_simple.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/kernel/mutex_simple.c b/examples/kernel/mutex_simple.c index b84cef12bf..afbab3a3e1 100644 --- a/examples/kernel/mutex_simple.c +++ b/examples/kernel/mutex_simple.c @@ -60,6 +60,10 @@ static void thread3_entry(void* parameter) while (1) { result = rt_mutex_take(mutex, RT_WAITING_FOREVER); + if (result != RT_EOK) + { + tc_stat(TC_STAT_END | TC_STAT_FAILED); + } result = rt_mutex_take(mutex, RT_WAITING_FOREVER); if (result != RT_EOK) { |
