Cast string arguments to char* to avoid warnings about CU_assertImplementation

This commit is contained in:
Yevgen Muntyan 2008-01-20 03:38:04 -06:00
parent c8ca1d62c4
commit 282de37d57

View File

@ -24,7 +24,8 @@ TEST_PASSED_OR_FAILEDV (gboolean passed,
else
msg = passed ? "Passed" : "Failed";
CU_assertImplementation (passed, line, msg, file, "", FALSE);
CU_assertImplementation (passed, line, (char*) msg,
(char*) file, (char*) "", FALSE);
g_free (freeme);
}
@ -47,8 +48,8 @@ TEST_PASSED_OR_FAILED (gboolean passed,
format, __VA_ARGS__)
#define TEST_ASSERT(cond) \
CU_assertImplementation (!!(cond), __LINE__, #cond, __FILE__, \
"", FALSE)
CU_assertImplementation (!!(cond), __LINE__, (char*) #cond, \
(char*) __FILE__, (char*) "", FALSE)
#define TEST_ASSERT_CMP__(Type,actual,expected,cmp,fmt_arg,msg) \
G_STMT_START { \
@ -183,6 +184,7 @@ G_STMT_START { \
#expr); \
} G_STMT_END
G_GNUC_UNUSED struct TestWarningsInfo {
int count;
int line;