diff --git a/emper/strategies/laws/LawsDispatcher.hpp b/emper/strategies/laws/LawsDispatcher.hpp index 46bdd437aee1124b5bc769c4ac7359c7902b606a..3d16e80065b166fb04ea1dc3acf69506d6a32c26 100644 --- a/emper/strategies/laws/LawsDispatcher.hpp +++ b/emper/strategies/laws/LawsDispatcher.hpp @@ -8,11 +8,14 @@ class LawsDispatcher : public Dispatcher { private: + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wattributes" LawsStrategy& lawsStrategy #ifndef EMPER_STATS ATTR_UNUSED #endif ; + #pragma GCC diagnostic pop public: LawsDispatcher(Runtime& runtime, LawsStrategy& lawsStrategy) : Dispatcher(runtime) diff --git a/emper/strategies/laws/LawsScheduler.hpp b/emper/strategies/laws/LawsScheduler.hpp index d49b0ebb7da9c2437335ed0d82abbd2997833a2b..f3ce4269cd37a74cec706332d4a9f1c172fc6d52 100644 --- a/emper/strategies/laws/LawsScheduler.hpp +++ b/emper/strategies/laws/LawsScheduler.hpp @@ -40,11 +40,14 @@ private: WsQueue<QUEUE_SIZE>* mainThreadQueue; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wattributes" LawsStrategy& lawsStrategy #ifndef EMPER_STATS ATTR_UNUSED #endif ; + #pragma GCC diagnostic pop public: diff --git a/emper/strategies/ws/WsScheduler.hpp b/emper/strategies/ws/WsScheduler.hpp index a40019a519ae7d06a07137110ef6d2224b9f92d3..382caff2e29010d0b79c74a7fb19bf0f00698ac2 100644 --- a/emper/strategies/ws/WsScheduler.hpp +++ b/emper/strategies/ws/WsScheduler.hpp @@ -24,11 +24,14 @@ private: WsQueue<QUEUE_SIZE>* mainThreadQueue; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wattributes" WsStrategy& wsStrategy #ifndef EMPER_STATS ATTR_UNUSED #endif ; + #pragma GCC diagnostic pop public: