X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=4daa0cd77e96f9a20b09e8f255047a891895c6d5;hb=95f61ba8829a545d5e3edfb5b4d6e7341bd58f0f;hp=b187c86fbc3c7fb89e3d6123bbddd481bc7bd859;hpb=2b07c8b182b76e4e3a162796d3ae273ef51d4131;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index b187c86f..4daa0cd7 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -3937,9 +3937,12 @@ ofopgroup_complete(struct ofopgroup *group) if (!op->error && !ofproto_rule_is_hidden(rule)) { /* Check that we can just cast from ofoperation_type to * nx_flow_update_event. */ - BUILD_ASSERT_DECL(OFOPERATION_ADD == NXFME_ADDED); - BUILD_ASSERT_DECL(OFOPERATION_DELETE == NXFME_DELETED); - BUILD_ASSERT_DECL(OFOPERATION_MODIFY == NXFME_MODIFIED); + BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_ADD + == NXFME_ADDED); + BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_DELETE + == NXFME_DELETED); + BUILD_ASSERT_DECL((enum nx_flow_update_event) OFOPERATION_MODIFY + == NXFME_MODIFIED); ofmonitor_report(ofproto->connmgr, rule, (enum nx_flow_update_event) op->type,