提交 9c94ac31 authored 作者: Christopher Rienzo's avatar Christopher Rienzo

Fix Ubuntu 11.10 compiler error on unchecked write() return value.

上级 086f6174
...@@ -113,7 +113,9 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu) ...@@ -113,7 +113,9 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu)
if (val >= 0 && val <= MAX_ACTIVE_TIMERS) { if (val >= 0 && val <= MAX_ACTIVE_TIMERS) {
uint8_t active_id = (uint8_t)val; uint8_t active_id = (uint8_t)val;
/* notify runtime thread that timer identified by active_id has ticked */ /* notify runtime thread that timer identified by active_id has ticked */
write(globals.timer_tick_pipe[1], &active_id, 1); if (write(globals.timer_tick_pipe[1], &active_id, 1) == -1) {
/* don't actually care about this error- this is only to make the compiler happy */
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论