diff --git a/src/App/Link.h b/src/App/Link.h index 3cffb22ed7..1f32a26145 100644 --- a/src/App/Link.h +++ b/src/App/Link.h @@ -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 LinkGroupPython; } //namespace App +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + #endif // APP_LINK_H diff --git a/src/Base/Console.h b/src/Base/Console.h index 2ab1ebdf02..693a921a62 100644 --- a/src/Base/Console.h +++ b/src/Base/Console.h @@ -36,6 +36,12 @@ #include #include +//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