Add break; (these things help, now and again)

Add ACTION_NONE case to the deferred action switch (shuts GCC up)

svn path=/trunk/netsurf/; revision=3649
This commit is contained in:
John Mark Bell 2007-11-04 13:47:36 +00:00
parent ac6946ef83
commit 8afe0caedd
1 changed files with 13 additions and 11 deletions

View File

@ -1608,17 +1608,19 @@ void browser_window_mouse_action_html(struct browser_window *bw,
and must therefore be done after set_status/pointer
*/
switch (action) {
case ACTION_SUBMIT:
browser_form_submit(bw,
browser_window_find_target(bw, target,
(mouse & BROWSER_MOUSE_CLICK_2)),
gadget->form, gadget);
case ACTION_GO:
browser_window_go(browser_window_find_target(bw, target,
(mouse & BROWSER_MOUSE_CLICK_2)),
url, c->url, true);
break;
case ACTION_SUBMIT:
browser_form_submit(bw,
browser_window_find_target(bw, target,
(mouse & BROWSER_MOUSE_CLICK_2)),
gadget->form, gadget);
break;
case ACTION_GO:
browser_window_go(browser_window_find_target(bw, target,
(mouse & BROWSER_MOUSE_CLICK_2)),
url, c->url, true);
break;
case ACTION_NONE:
break;
}
}