aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-18 16:47:25 +0100
committerGitHub <noreply@github.com>2018-03-18 16:47:25 +0100
commit72e4c9d8e776790e40b2a5911bb702de897fbd12 (patch)
tree06362caeb7fb916ced7202c5b71d0d5f3757a304 /src/nvim/api
parentf407a94032ae7c3a78aa39c2de02e37d14a5f861 (diff)
parent65b66bc332c56c04d4687f11b601a59ddd5d09bd (diff)
downloadrneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.tar.gz
rneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.tar.bz2
rneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.zip
Merge #8142 'build/msvc: fix some warnings'
Diffstat (limited to 'src/nvim/api')
-rw-r--r--src/nvim/api/private/defs.h2
-rw-r--r--src/nvim/api/private/helpers.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h
index 2144c80d6a..390b7e8363 100644
--- a/src/nvim/api/private/defs.h
+++ b/src/nvim/api/private/defs.h
@@ -47,7 +47,7 @@ typedef enum {
/// Internal call from lua code
#define LUA_INTERNAL_CALL (VIML_INTERNAL_CALL + 1)
-static inline bool is_internal_call(uint64_t channel_id)
+static inline bool is_internal_call(const uint64_t channel_id)
REAL_FATTR_ALWAYS_INLINE REAL_FATTR_CONST;
/// Check whether call is internal
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 65c306d4b1..1115faaeaf 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -567,7 +567,7 @@ static inline void typval_encode_dict_end(EncodedData *const edata)
typval_encode_dict_end(edata)
#define TYPVAL_ENCODE_CONV_RECURSE(val, conv_type) \
- TYPVAL_ENCODE_CONV_NIL()
+ TYPVAL_ENCODE_CONV_NIL(val)
#define TYPVAL_ENCODE_SCOPE static
#define TYPVAL_ENCODE_NAME object