Add maybe_unused to some parameters am: 7608cd4a55
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1915657
Change-Id: I1d45f40340d5877d2fa90dc8eafafabc37688fd4
diff --git a/common/action.h b/common/action.h
index fd82c2d..d32322c 100644
--- a/common/action.h
+++ b/common/action.h
@@ -98,7 +98,7 @@
virtual void PerformAction() = 0;
// Called on ActionProcess::ActionComplete() by ActionProcessor.
- virtual void ActionCompleted(ErrorCode code) {}
+ virtual void ActionCompleted([[maybe_unused]] ErrorCode code) {}
// Called by the ActionProcessor to tell this Action which processor
// it belongs to.
diff --git a/common/action_processor.h b/common/action_processor.h
index ad98cc9..6108c3e 100644
--- a/common/action_processor.h
+++ b/common/action_processor.h
@@ -130,18 +130,19 @@
// Called when all processing in an ActionProcessor has completed. A pointer
// to the ActionProcessor is passed. |code| is set to the exit code of the
// last completed action.
- virtual void ProcessingDone(const ActionProcessor* processor,
- ErrorCode code) {}
+ virtual void ProcessingDone([[maybe_unused]] const ActionProcessor* processor,
+ [[maybe_unused]] ErrorCode code) {}
// Called when processing has stopped. Does not mean that all Actions have
// completed. If/when all Actions complete, ProcessingDone() will be called.
- virtual void ProcessingStopped(const ActionProcessor* processor) {}
+ virtual void ProcessingStopped(
+ [[maybe_unused]] const ActionProcessor* processor) {}
// Called whenever an action has finished processing, either successfully
// or otherwise.
- virtual void ActionCompleted(ActionProcessor* processor,
- AbstractAction* action,
- ErrorCode code) {}
+ virtual void ActionCompleted([[maybe_unused]] ActionProcessor* processor,
+ [[maybe_unused]] AbstractAction* action,
+ [[maybe_unused]] ErrorCode code) {}
};
} // namespace chromeos_update_engine