From: teodor Date: Fri, 4 Jul 2008 15:06:12 +0000 (+0000) Subject: Eliminate warinig. X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=9ebec3abbb483692bfa747d874533e5e2080235b;p=tedtools.git Eliminate warinig. --- diff --git a/tlog.h b/tlog.h index dbe6efd..1cec446 100644 --- a/tlog.h +++ b/tlog.h @@ -50,9 +50,9 @@ void tlog(u_int32_t level,const char *format, ...); void closetlog(); #ifdef ASSERT_CORE -#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, (__func__) ? __func__ : "UNKNOWN", __FILE__, __LINE__), closetlog(), abort()) ) +#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, __func__, __FILE__, __LINE__), closetlog(), abort()) ) #else -#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT|TL_EXIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, (__func__) ? __func__ : "UNKNOWN", __FILE__, __LINE__)) ) +#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT|TL_EXIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, __func__, __FILE__, __LINE__)) ) #endif #endif