diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-10 20:36:28 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-08-10 20:36:28 +0200 |
commit | faccae47fca5cb671e5c900e128b7da5a9937534 (patch) | |
tree | 041b6d91631ec4b968a534251c303b314a697fca /src | |
parent | ff1266aaaaba80f86ab9624eea8939d644d7e730 (diff) | |
download | rneovim-faccae47fca5cb671e5c900e128b7da5a9937534.tar.gz rneovim-faccae47fca5cb671e5c900e128b7da5a9937534.tar.bz2 rneovim-faccae47fca5cb671e5c900e128b7da5a9937534.zip |
fix(mpack): make sure a `bool` always is a `bool`
before, RelWithDebInfo linking gave this warning:
src/mpack/conv.h:36:16: warning: type of ‘mpack_unpack_boolean’ does not match original declaration [-Wlto-type-mismatch]
36 | MPACK_API bool mpack_unpack_boolean(mpack_token_t t) FUNUSED FPURE;
| ^
src/mpack/conv.c:196:16: note: return value type mismatch
196 | MPACK_API bool mpack_unpack_boolean(mpack_token_t t)
| ^
Diffstat (limited to 'src')
-rw-r--r-- | src/mpack/mpack_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mpack/mpack_core.h b/src/mpack/mpack_core.h index 1d601bc82d..336b778931 100644 --- a/src/mpack/mpack_core.h +++ b/src/mpack/mpack_core.h @@ -8,6 +8,7 @@ #include <assert.h> #include <limits.h> #include <stddef.h> +#include <stdbool.h> #ifdef __GNUC__ # define FPURE __attribute__((const)) |