clang-tidy: Enable readability-named-parameter check
This check finds functions with unnamed arguments.
Change-Id: I48e2eadbece410843559cd6077d67019e6e0464b
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index 5dee046..f324217 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -238,6 +238,7 @@
readability-make-member-function-const,
readability-misleading-indentation,
readability-misplaced-array-index,
+readability-named-parameter,
readability-non-const-parameter,
readability-redundant-access-specifiers,
readability-redundant-function-ptr-dereference,
diff --git a/activation.hpp b/activation.hpp
index 2a83569..891e582 100644
--- a/activation.hpp
+++ b/activation.hpp
@@ -251,11 +251,11 @@
void flashWriteHost();
/** @brief Function that acts on Bios upgrade service file state changes */
- void onStateChangesBios(sdbusplus::message_t&);
+ void onStateChangesBios(sdbusplus::message_t& /*msg*/);
#endif
/** @brief Overloaded function that acts on service file state changes */
- void onStateChanges(sdbusplus::message_t&) override;
+ void onStateChanges(sdbusplus::message_t& /*msg*/) override;
/** @brief Check if systemd state change is relevant to this object
*