Skip to content

Commit

Permalink
ev_cli: attribute parameter of _gather_cmds with [[maybe_unused]] (#155)
Browse files Browse the repository at this point in the history
Without this attribute, interfaces without commands generate
a lot of warnings since the parameter is not used inside the function.

Signed-off-by: Michael Heimpold <[email protected]>
  • Loading branch information
mhei authored Oct 14, 2024
1 parent 2898f85 commit 2752486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ev-dev-tools/src/ev_cli/templates/interface-Base.hpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private:
std::shared_ptr<Everest::error::ErrorManagerImpl> error_manager;

// helper function for getting all commands
void _gather_cmds(std::vector<Everest::cmd>& cmds) override {
void _gather_cmds([[maybe_unused]] std::vector<Everest::cmd>& cmds) override {
{% if not cmds %}
// this interface does not offer any commands
{% else %}
Expand Down

0 comments on commit 2752486

Please sign in to comment.