aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_gui.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-01-30 22:32:25 +0000
committerBill Meier <wmeier@newsguy.com>2011-01-30 22:32:25 +0000
commit8a07e469f39d4b3c262c63975908c42ae8bb93de (patch)
tree38c9f229d979138a1dafdffc53d87e9842d4b650 /epan/wslua/wslua_gui.c
parentb0d7bf821c0dfeb7a71d2b98197243bd828525f2 (diff)
Fix a number of msvc level 4 "Unreachable code" warnings by removing unneeded
return statements. svn path=/trunk/; revision=35709
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r--epan/wslua/wslua_gui.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c
index 3f34069fc5..83f77311d3 100644
--- a/epan/wslua/wslua_gui.c
+++ b/epan/wslua/wslua_gui.c
@@ -216,17 +216,14 @@ WSLUA_FUNCTION wslua_new_dialog(lua_State* L) { /* Pops up a new dialog */
if (! (title = luaL_checkstring(L,WSLUA_ARG_new_dialog_TITLE)) ) {
WSLUA_ARG_ERROR(new_dialog,TITLE,"Must be a string");
- return 0;
}
if (! lua_isfunction(L,WSLUA_ARG_new_dialog_ACTION)) {
WSLUA_ARG_ERROR(new_dialog,ACTION,"Must be a function");
- return 0;
}
if (top < 3) {
WSLUA_ERROR(new_dialog,"At least one field required");
- return 0;
}