提交 a5a484dd 编写于 作者: C Cédric Bosdonnat 提交者: Daniel P. Berrange

Added default case with error for object event dispatching

Hitting this should be pretty rare, but at least developers will know
that they are providing a weird event ID. Otherwise for namespace that
are added in the normal way, gcc will raise a warning about unhandled
case in the switch.
上级 1b07406e
......@@ -646,6 +646,8 @@ virObjectEventStateDispatchFunc(virConnectPtr conn,
virNetworkEventDispatchDefaultFunc(conn, event,
VIR_NETWORK_EVENT_CALLBACK(cb), cbopaque, NULL);
break;
default:
VIR_ERROR(_("Unknown event namespace to dispatch"));
}
virObjectEventStateLock(state);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册