diff options
| author | Christian Hopps <chopps@labn.net> | 2023-03-20 19:28:42 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@gmail.com> | 2023-03-22 05:22:56 +0000 |
| commit | 0b645fd2168d977878b1cf0d14eff3755ca66e05 (patch) | |
| tree | 18b64f967378efb5ce65016cebb4931003e9552e /lib/mgmt_be_client.c | |
| parent | d6c755f245eeb2aedfd2b84aafee4103fb0417db (diff) | |
lib: mgmtd: fix build warnings (as error)dev/mgmtd
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
| -rw-r--r-- | lib/mgmt_be_client.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c index 4dc7b296b8..bb45024d0e 100644 --- a/lib/mgmt_be_client.c +++ b/lib/mgmt_be_client.c @@ -819,7 +819,11 @@ static int mgmt_be_client_handle_msg(struct mgmt_be_client_ctx *client_ctx, Mgmtd__BeMessage *be_msg) { - switch (be_msg->message_case) { + /* + * protobuf-c adds a max size enum with an internal, and changing by + * version, name; cast to an int to avoid unhandled enum warnings + */ + switch ((int)be_msg->message_case) { case MGMTD__BE_MESSAGE__MESSAGE_SUBSCR_REPLY: MGMTD_BE_CLIENT_DBG("Subscribe Reply Msg from mgmt, status %u", be_msg->subscr_reply->success); @@ -861,9 +865,6 @@ mgmt_be_client_handle_msg(struct mgmt_be_client_ctx *client_ctx, case MGMTD__BE_MESSAGE__MESSAGE_SHOW_CMD_REPLY: case MGMTD__BE_MESSAGE__MESSAGE_NOTIFY_DATA: case MGMTD__BE_MESSAGE__MESSAGE__NOT_SET: -#if PROTOBUF_C_VERSION_NUMBER >= 1003000 - case _MGMTD__BE_MESSAGE__MESSAGE_IS_INT_SIZE: -#endif default: /* * A 'default' case is being added contrary to the |
