net: safeguard against strange compiler warnings

This commit is contained in:
Thomas Schoebel-Theuer 2022-07-21 14:25:46 +02:00
parent 46b4739fd7
commit 812cfa685e

View File

@ -1021,7 +1021,9 @@ int _desc_send_item(struct mars_socket *msock, const void *data, const struct ma
if (unlikely(status < 0))
return status;
/* fallthrough */
goto label_default;
default:
label_default:
if (likely(len > 0)) {
status = mars_send_raw(msock, item, len, cork);
if (unlikely(status < 0))
@ -1109,7 +1111,9 @@ int _desc_recv_item(struct mars_socket *msock, void *data, const struct mars_des
}
/* fallthrough */
goto label_default;
default:
label_default:
if (likely(len > 0)) {
status = mars_recv_raw(msock, item, len, len);
if (unlikely(status < 0))