mirror of
https://github.com/schoebel/mars
synced 2025-01-28 02:03:29 +00:00
net: safeguard against strange compiler warnings
This commit is contained in:
parent
46b4739fd7
commit
812cfa685e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user