[skip ci] suppress -Wgnu-zero-variadic-macro-arguments for some headers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user