Skip to content
Snippets Groups Projects
Commit c2e36c0b authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Ignore -Wattributes

It appears that gcc does not support __attribute__((unused)) on class
members and thus emits an warning when he finds it.
parent b706541a
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,14 @@ class LawsDispatcher : public Dispatcher { ...@@ -8,11 +8,14 @@ class LawsDispatcher : public Dispatcher {
private: private:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
LawsStrategy& lawsStrategy LawsStrategy& lawsStrategy
#ifndef EMPER_STATS #ifndef EMPER_STATS
ATTR_UNUSED ATTR_UNUSED
#endif #endif
; ;
#pragma GCC diagnostic pop
public: public:
LawsDispatcher(Runtime& runtime, LawsStrategy& lawsStrategy) : Dispatcher(runtime) LawsDispatcher(Runtime& runtime, LawsStrategy& lawsStrategy) : Dispatcher(runtime)
......
...@@ -40,11 +40,14 @@ private: ...@@ -40,11 +40,14 @@ private:
WsQueue<QUEUE_SIZE>* mainThreadQueue; WsQueue<QUEUE_SIZE>* mainThreadQueue;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
LawsStrategy& lawsStrategy LawsStrategy& lawsStrategy
#ifndef EMPER_STATS #ifndef EMPER_STATS
ATTR_UNUSED ATTR_UNUSED
#endif #endif
; ;
#pragma GCC diagnostic pop
public: public:
......
...@@ -24,11 +24,14 @@ private: ...@@ -24,11 +24,14 @@ private:
WsQueue<QUEUE_SIZE>* mainThreadQueue; WsQueue<QUEUE_SIZE>* mainThreadQueue;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
WsStrategy& wsStrategy WsStrategy& wsStrategy
#ifndef EMPER_STATS #ifndef EMPER_STATS
ATTR_UNUSED ATTR_UNUSED
#endif #endif
; ;
#pragma GCC diagnostic pop
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment