From 0131b9bd5ff4a7507ee7d356dc7a7aa4a4de0430 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 7 Dec 2010 23:19:45 +0200 Subject: [PATCH] * mu-util.h: fix -pedantic warning (variadic macro) --- src/mu-util.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mu-util.h b/src/mu-util.h index ba106683..068f7644 100644 --- a/src/mu-util.h +++ b/src/mu-util.h @@ -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