commit faccae47fca5cb671e5c900e128b7da5a9937534
parent ff1266aaaaba80f86ab9624eea8939d644d7e730
Author: bfredl <bjorn.linse@gmail.com>
Date: Wed, 10 Aug 2022 20:36:28 +0200
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:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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))