From 2ddbfd7c57c134d9faf36cb08af5c8d70bf6a19d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 23 Aug 2022 10:11:09 +0200 Subject: [PATCH] Avoid many warnings using gcc --- include/lib_tree_model_adapter.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;