diff --git a/include/lib_tree_model_adapter.h b/include/lib_tree_model_adapter.h index e12950aa34..d219599d72 100644 --- a/include/lib_tree_model_adapter.h +++ b/include/lib_tree_model_adapter.h @@ -393,7 +393,12 @@ protected: LIB_TREE_NODE_ROOT m_tree; private: - [[maybe_unused]] EDA_BASE_FRAME* m_parent; + #ifndef __clang__ + // [[maybe_unused]] attribute is ignored by Gcc but generates a warning. + EDA_BASE_FRAME* m_parent; + #else + [[maybe_unused]] EDA_BASE_FRAME* m_parent; + #endif SYM_FILTER_TYPE m_filter; bool m_show_units;