Comment unused parameters
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id5448711b5a6910514264ff9c008b7d32c26a8f8
diff --git a/app.cpp b/app.cpp
index 59c872d..0d6053c 100644
--- a/app.cpp
+++ b/app.cpp
@@ -16,7 +16,7 @@
using InternalFailure =
sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
-int main(int argc, char* argv[])
+int main(int /*argc*/, char** /*argv[]*/)
{
auto& bus = open_power::occ::utils::getBus();
diff --git a/occ_errors.cpp b/occ_errors.cpp
index a356378..c6f450d 100644
--- a/occ_errors.cpp
+++ b/occ_errors.cpp
@@ -100,8 +100,8 @@
}
// Callback handler when there is an activity on the FD
-int Error::processEvents(sd_event_source* es, int fd, uint32_t revents,
- void* userData)
+int Error::processEvents(sd_event_source* /*es*/, int /*fd*/,
+ uint32_t /*revents*/, void* userData)
{
auto error = static_cast<Error*>(userData);
diff --git a/pldm.cpp b/pldm.cpp
index 30faf89..093869d 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -156,8 +156,8 @@
}
void Interface::fetchOCCEffecterInfo(
- const PdrList& pdrs, OccInstanceToEffecter& instanceToEffecterMap,
- CompositeEffecterCount& count, uint8_t& bootRestartPos)
+ const PdrList& pdrs, OccInstanceToEffecter& /*instanceToEffecterMap*/,
+ CompositeEffecterCount& /*count*/, uint8_t& bootRestartPos)
{
bool offsetFound = false;
auto pdr =