From 4b753924dbdaf530abd07bc44a89ff2792fcdbdc Mon Sep 17 00:00:00 2001 From: junmin kim Date: Wed, 6 Sep 2017 01:05:10 -0700 Subject: [PATCH] Fix build warning in kernel tc Include missed header and use set-but-unused value --- apps/examples/testcase/le_tc/kernel/tc_libc_timer.c | 2 ++ apps/examples/testcase/le_tc/kernel/tc_task.c | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/examples/testcase/le_tc/kernel/tc_libc_timer.c b/apps/examples/testcase/le_tc/kernel/tc_libc_timer.c index cc6b197..97dfab4 100644 --- a/apps/examples/testcase/le_tc/kernel/tc_libc_timer.c +++ b/apps/examples/testcase/le_tc/kernel/tc_libc_timer.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -403,6 +404,7 @@ static void tc_libc_timer_strftime(void) /* Check with invalid param. it will returns 0. */ ret_chk = strftime(buffer, BUFF_SIZE, "%f", &st_time); + TC_ASSERT_EQ("strftime", ret_chk, 0); TC_ASSERT_EQ("strftime", atoi(buffer), 0); TC_SUCCESS_RESULT(); diff --git a/apps/examples/testcase/le_tc/kernel/tc_task.c b/apps/examples/testcase/le_tc/kernel/tc_task.c index 21a6492..63039d8 100644 --- a/apps/examples/testcase/le_tc/kernel/tc_task.c +++ b/apps/examples/testcase/le_tc/kernel/tc_task.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "tc_internal.h" -- 2.7.4