set platform-specific doCommand() to fix more -Wgnu-zero-variadic-macro-arguments

This commit is contained in:
wmayer
2019-11-16 00:54:52 +01:00
parent dc7c48c230
commit 555ecd0427

View File

@@ -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
*