summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorneale ranns <nranns@cisco.com>2020-04-09 13:03:45 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-04-09 16:26:32 +0000
commit81767d71a943fcf1196867549a6b48122f259695 (patch)
tree8bc67affa3123b36d28b35269720f0b9664023f8 /extras
parentf8f88eff66d8584eca8c570c22967c3d85fce020 (diff)
vom: Fixes for g++-9
Type: improvement Signed-off-by: neale ranns <nranns@cisco.com> Change-Id: I356251b750fcab05ff91e0295e96a8451e8b2f88
Diffstat (limited to 'extras')
-rw-r--r--extras/vom/vom/pipe_cmds.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/extras/vom/vom/pipe_cmds.cpp b/extras/vom/vom/pipe_cmds.cpp
index 9215efe635f..b01ec2f92fc 100644
--- a/extras/vom/vom/pipe_cmds.cpp
+++ b/extras/vom/vom/pipe_cmds.cpp
@@ -27,8 +27,7 @@ create_cmd::create_cmd(HW::item<handle_t>& item,
: interface::create_cmd<vapi::Pipe_create>(item, name)
, m_hdl_pair(ends)
, m_instance(instance)
-{
-}
+{}
bool
create_cmd::operator==(const create_cmd& other) const
@@ -45,8 +44,9 @@ create_cmd::operator()(vapi::Pipe_create& reply)
const rc_t& rc = rc_t::from_vpp_retval(payload.retval);
- m_hdl_pair = { pipe::handle_pair_t(payload.pipe_sw_if_index[0],
- payload.pipe_sw_if_index[1]),
+ m_hdl_pair = { pipe::handle_pair_t(
+ static_cast<handle_t>(payload.pipe_sw_if_index[0]),
+ static_cast<handle_t>(payload.pipe_sw_if_index[1])),
rc };
fulfill(HW::item<handle_t>(payload.sw_if_index, rc));
@@ -86,8 +86,7 @@ delete_cmd::delete_cmd(HW::item<handle_t>& item,
HW::item<pipe::handle_pair_t>& end_pair)
: interface::delete_cmd<vapi::Pipe_delete>(item)
, m_hdl_pair(end_pair)
-{
-}
+{}
bool
delete_cmd::operator==(const delete_cmd& other) const