Skip to content
Snippets Groups Projects
Commit 17f4c6a3 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

modules: don't return an expression in void functions

It's not allowed in C11 (but OK in C++).
parent fdd5c00c
No related branches found
No related tags found
Loading
Pipeline #304723 passed with stage
in 24 minutes and 46 seconds
......@@ -69,7 +69,7 @@ static void conn_send_raw(const void *buf, size_t len)
static void conn_send(const char *str)
{
return conn_send_raw(str, strlen(str));
conn_send_raw(str, strlen(str));
}
static void conn_shutdown(bool duplex)
......
......@@ -77,7 +77,8 @@ INTF_ACTION_HANDLER()
switch (action_id)
{
case ACTIONID_QUIT:
return libvlc_Quit(vlc_object_instance(intf));
libvlc_Quit(vlc_object_instance(intf));
return;
case ACTIONID_INTF_TOGGLE_FSC:
case ACTIONID_INTF_HIDE:
varname = "intf-toggle-fscontrol";
......@@ -1098,7 +1099,10 @@ handle_action(intf_thread_t *intf, vlc_action_id_t action_id)
actions[action_idx].range.last >= action_id)
break;
if (actions[action_idx].type == NULL_ACTION)
return msg_Warn(intf, "no handler for action %d", action_id);
{
msg_Warn(intf, "no handler for action %d", action_id);
return;
}
struct vlc_action const *action = actions + action_idx;
vlc_playlist_t *playlist = intf->p_sys->playlist;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment