From ef01818afeab28fa8ac01dab11b3396e3aeaa083 Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Wed, 7 May 2025 12:39:23 +0200 Subject: [PATCH] Doc: Fix warnings App::Property PR #21155 introduced some warnings that are fixed in this PR. --- src/App/Property.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App/Property.h b/src/App/Property.h index 63b78106ff..02dc8b9de9 100644 --- a/src/App/Property.h +++ b/src/App/Property.h @@ -293,7 +293,8 @@ public: * @param[out] value The Python value of the property. * @return True if the value was successfully retrieved, false otherwise. */ - virtual bool getPyPathValue(const App::ObjectIdentifier& path, Py::Object& value) const + virtual bool getPyPathValue([[maybe_unused]] const App::ObjectIdentifier& path, + [[maybe_unused]] Py::Object& value) const { return false; } @@ -482,7 +483,7 @@ public: * * @param[in] prop The child property that has changed value. */ - virtual void hasSetChildValue(Property&) {} + virtual void hasSetChildValue([[maybe_unused]] Property& prop) {} /** * @brief Callback for when a child property is about to change value. @@ -491,7 +492,7 @@ public: * *@param[in] prop The child property that is about to change value. */ - virtual void aboutToSetChildValue(Property&) {} + virtual void aboutToSetChildValue([[maybe_unused]] Property& prop) {} /** * @brief Compare if this property has the same content as the given one.