From faccae47fca5cb671e5c900e128b7da5a9937534 Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 10 Aug 2022 20:36:28 +0200 Subject: fix(mpack): make sure a `bool` always is a `bool` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) | ^ --- src/mpack/mpack_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 #include #include +#include #ifdef __GNUC__ # define FPURE __attribute__((const)) -- cgit