[Bf-blender-cvs] [0083a7615eb] master: Revert "Cleanup: Fix unused-private-field warning."

Ankit Meel noreply at git.blender.org
Thu Mar 25 12:54:06 CET 2021


Commit: 0083a7615eb4928f470c6400bfc52af8154d4ef0
Author: Ankit Meel
Date:   Thu Mar 25 17:23:46 2021 +0530
Branches: master
https://developer.blender.org/rB0083a7615eb4928f470c6400bfc52af8154d4ef0

Revert "Cleanup: Fix unused-private-field warning."

This reverts commit 43c48965d7cf87dd00ccf8714d2f6d08ffa4c474.
It created a new warning on GCC: -Wattribute (ignored attribute) as
GCC doesn't warn about unused private fields.

===================================================================

M	source/blender/editors/space_outliner/tree/tree_element_overrides.hh

===================================================================

diff --git a/source/blender/editors/space_outliner/tree/tree_element_overrides.hh b/source/blender/editors/space_outliner/tree/tree_element_overrides.hh
index 4f7025610ed..b5c772f5b33 100644
--- a/source/blender/editors/space_outliner/tree/tree_element_overrides.hh
+++ b/source/blender/editors/space_outliner/tree/tree_element_overrides.hh
@@ -39,7 +39,7 @@ class TreeElementOverridesBase final : public AbstractTreeElement {
 };
 
 class TreeElementOverridesProperty final : public AbstractTreeElement {
-  [[maybe_unused]] ID &id_;
+  ID &id_;
   IDOverrideLibraryProperty &override_prop_;
 
  public:



More information about the Bf-blender-cvs mailing list