Fix more build warnings
There are a couple new build warnings about missing cases in a switch
and an unused paramter. This adds a default case and comments the
parameter to fix the build.
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: I54321e2631b54e96bc3ea97fcc345642a8ea4294
diff --git a/include/error_monitors/ierr_monitor.hpp b/include/error_monitors/ierr_monitor.hpp
index 5babf50..b86f6b9 100644
--- a/include/error_monitors/ierr_monitor.hpp
+++ b/include/error_monitors/ierr_monitor.hpp
@@ -299,6 +299,10 @@
}
break;
}
+ default:
+ std::cerr << "No special IERR handling provided for model "
+ << static_cast<int>(model) << "\n";
+ break;
}
}
#endif
@@ -454,7 +458,7 @@
resp = requested;
return 1;
},
- [this](std::size_t& resp) { return getTimeoutMs(); });
+ [this](std::size_t& /*resp*/) { return getTimeoutMs(); });
hostErrorTimeoutIface->initialize();
std::string objectName = customName.empty() ? signalName : customName;