Fix cppcheck warnings
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I18be21d5141630a1da3d5e54740b54a9a06496d9
diff --git a/src/hostSelector_switch.cpp b/src/hostSelector_switch.cpp
index c3ad83f..dbdd836 100644
--- a/src/hostSelector_switch.cpp
+++ b/src/hostSelector_switch.cpp
@@ -37,7 +37,7 @@
void HostSelector::setInitialHostSelectorValue()
{
char buf;
- for (int index = 0; index < gpioLineCount; index++)
+ for (size_t index = 0; index < gpioLineCount; index++)
{
auto result = ::lseek(config.gpios[index].fd, 0, SEEK_SET);
@@ -94,7 +94,8 @@
* init() function can be created to override the default event handling
*/
-void HostSelector::handleEvent(sd_event_source* es, int fd, uint32_t revents)
+void HostSelector::handleEvent(sd_event_source* /* es */, int fd,
+ uint32_t /* revents */)
{
int n = -1;
char buf = '0';