Merge pull request #2114 from oni-link/remove.assert

Fixes for two compiler warnings
This commit is contained in:
John Szakmeister 2015-03-12 07:24:15 -04:00
commit 74531e50dc
2 changed files with 1 additions and 3 deletions

View File

@ -145,7 +145,7 @@ String vim_command_output(String str, Error *err)
Object vim_eval(String str, Error *err) Object vim_eval(String str, Error *err)
FUNC_ATTR_DEFERRED FUNC_ATTR_DEFERRED
{ {
Object rv; Object rv = OBJECT_INIT;
// Evaluate the expression // Evaluate the expression
try_start(); try_start();
typval_T *expr_result = eval_expr((char_u *) str.data, NULL); typval_T *expr_result = eval_expr((char_u *) str.data, NULL);

View File

@ -42,8 +42,6 @@ int os_chdir(const char *path)
int os_dirname(char_u *buf, size_t len) int os_dirname(char_u *buf, size_t len)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {
assert(buf && len);
int error_number; int error_number;
if ((error_number = uv_cwd((char *)buf, &len)) != kLibuvSuccess) { if ((error_number = uv_cwd((char *)buf, &len)) != kLibuvSuccess) {
STRLCPY(buf, uv_strerror(error_number), len); STRLCPY(buf, uv_strerror(error_number), len);