summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-06 19:57:20 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-06 19:57:20 +0100
commit81e7a9c3fb37cad46c8f04a5ce871fb06819a371 (patch)
tree137d60842f9637b69037c043e9e5f6e6215d3402 /src/if_python.c
parent4f8b8faec31a934920a723053e8dcf47b6fac08c (diff)
downloadvim-git-81e7a9c3fb37cad46c8f04a5ce871fb06819a371.tar.gz
patch 7.4.1270v7.4.1270
Problem: Warnings for missing values in switch. Solution: Change switch to if-else or add values.
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 43c89928e..4c2760e06 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -1556,6 +1556,12 @@ do_pyeval (char_u *str, typval_T *rettv)
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;
break;
+ case VAR_NUMBER:
+ case VAR_STRING:
+ case VAR_FLOAT:
+ case VAR_JOB:
+ case VAR_SPECIAL:
+ break;
}
}