apps/testcase: fix compilation warning
authorEunBong Song <eunb.song@samsung.com>
Thu, 6 Apr 2017 07:49:17 +0000 (16:49 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:09 +0000 (12:02 +0900)
This patch fixes a compilation warning below:

    le_tc/kernel/tc_tash_heapinfo.c: In function 'tc_tash_heapinfo':
    ./tc_common.h:61:3: error: 'return' with no value, in function returning non-void [-Werror=return-type]
       return; \
       ^
    le_tc/kernel/tc_tash_heapinfo.c:84:2: note: in expansion of macro 'TC_ASSERT_EQ'
       TC_ASSERT_EQ("pthread_create", ret, OK);

Change-Id: Iabba8b1c44d57b26b2b4ea067495cca773c3251d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/testcase/tc_common.h

index 91e5b2b..e56eedb 100644 (file)
@@ -58,7 +58,6 @@ int total_fail;
        if (var != ref) {\
                printf("\n[%s][Line : %d] FAIL, %s : Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", __func__, __LINE__, api_name, #var, (int)var, #ref, (int)ref); \
                total_fail++; \
-               return; \
        } \
 }