[skip ci] suppress -Wgnu-zero-variadic-macro-arguments for some headers

This commit is contained in:
wmayer
2019-11-13 22:38:09 +01:00
parent d2032da93d
commit 33b0b1351e
2 changed files with 18 additions and 0 deletions

View File

@@ -40,6 +40,10 @@
#include "GroupExtension.h"
//FIXME: ISO C++11 requires at least one argument for the "..." in a variadic macro
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#endif
#define LINK_THROW(_type,_msg) do{\
if(FC_LOG_INSTANCE.isEnabled(FC_LOGLEVEL_LOG))\
@@ -541,4 +545,8 @@ typedef App::FeaturePythonT<LinkGroup> LinkGroupPython;
} //namespace App
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#endif // APP_LINK_H

View File

@@ -36,6 +36,12 @@
#include <sstream>
#include <chrono>
//FIXME: ISO C++11 requires at least one argument for the "..." in a variadic macro
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#endif
//**************************************************************************
// Logging levels
@@ -742,3 +748,7 @@ private:
} // namespace Base
#if defined(__clang__)
# pragma clang diagnostic pop
#endif