aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-10 20:36:28 +0200
committerbfredl <bjorn.linse@gmail.com>2022-08-10 20:36:28 +0200
commitfaccae47fca5cb671e5c900e128b7da5a9937534 (patch)
tree041b6d91631ec4b968a534251c303b314a697fca
parentff1266aaaaba80f86ab9624eea8939d644d7e730 (diff)
downloadrneovim-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) | ^
-rw-r--r--src/mpack/mpack_core.h1
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))