From 555ecd0427a8c423972b54dde2c4bd73b14b8e9f Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 16 Nov 2019 00:54:52 +0100 Subject: [PATCH] set platform-specific doCommand() to fix more -Wgnu-zero-variadic-macro-arguments --- src/Gui/Command.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/Command.h b/src/Gui/Command.h index 486523ea20..7b637075cf 100644 --- a/src/Gui/Command.h +++ b/src/Gui/Command.h @@ -450,8 +450,11 @@ public: * * @sa Command::_doCommand() */ -//#define doCommand(...) _doCommand(__FILE__,__LINE__,__VA_ARGS__) +#ifdef FC_OS_WIN32 #define doCommand(_type,...) _doCommand(__FILE__,__LINE__,_type,##__VA_ARGS__) +#else +#define doCommand(...) _doCommand(__FILE__,__LINE__,__VA_ARGS__) +#endif /** Run a command with printf like formatter *