* mu-util.h: fix -pedantic warning (variadic macro)

This commit is contained in:
Dirk-Jan C. Binnema 2010-12-07 23:19:45 +02:00
parent 39d71b8e3b
commit 0131b9bd5f
1 changed files with 2 additions and 6 deletions

View File

@ -181,16 +181,12 @@ gchar* mu_util_str_from_strv (const gchar **params)
* log something in the log file; note, we use G_LOG_LEVEL_INFO
* for such messages
*/
#ifdef G_HAVE_GNUC_VARARGS
#define MU_WRITE_LOG(format...) \
#define MU_WRITE_LOG(...) \
G_STMT_START { \
g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_INFO, \
format); \
__VA_ARGS__); \
} G_STMT_END
#else
#define MU_WRITE_LOG(x)
#endif /*G_HAVE_GNUC_VARARGS*/
G_END_DECLS