Fix for g++-13
g++-13 is complaining about a variable that may be getting
used prior to initialization. This is a false alarm, since
the only 'using' that the variable gets is assignment, but
it is simple enough to provide a default constructor to
get rid of the warning.
Change-Id: I3312149f32a9a605b522eb6f1f8d9afb982fb3c6
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/include/ipmid/handler.hpp b/include/ipmid/handler.hpp
index 0359ee3..62fcbe9 100644
--- a/include/ipmid/handler.hpp
+++ b/include/ipmid/handler.hpp
@@ -192,7 +192,7 @@
InputArgsType>::type;
using ResultType = boost::callable_traits::return_type_t<Handler>;
- UnpackArgsType unpackArgs;
+ UnpackArgsType unpackArgs{};
request->payload.trailingOk = false;
ipmi::Cc unpackError = request->unpack(unpackArgs);
if (unpackError != ipmi::ccSuccess)