From 2a4f8646a6ddd5f92d58330603aabdd7bea4e19a Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 15 Dec 2025 12:42:48 +0100 Subject: [PATCH 1/2] MsgPack: set default log level to WARN to avoid CI issues Not setting the default log level causes a warning on every CI run. Setting it to WARN avoids the warning and is a reasonable default. Signed-off-by: Luca Burelli --- src/decoder.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/decoder.h b/src/decoder.h index c969f50..34e5961 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -6,12 +6,14 @@ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ #ifndef RPCLITE_DECODER_H #define RPCLITE_DECODER_H +// MsgPack log level +#define DEBUGLOG_DEFAULT_LOG_LEVEL_WARN + #include "MsgPack.h" #include "transport.h" #include "rpclite_utils.h" @@ -343,4 +345,4 @@ class RpcDecoder { }; -#endif \ No newline at end of file +#endif From fb521ebf712a390ff364249a56db99f8898af8b1 Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 15 Dec 2025 12:48:19 +0100 Subject: [PATCH 2/2] decoder.h: warning cleanup Fix a compiler warning about a possibly uninitialized variable (the compiler cannot prove that the variable is always initialized before use, even though the code logic guarantees it). Signed-off-by: Luca Burelli --- src/decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder.h b/src/decoder.h index 34e5961..d0716ca 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -208,7 +208,7 @@ class RpcDecoder { size_t bytes_checked = 0; size_t container_size; - int type; + int type = NO_MSG; MsgPack::Unpacker unpacker; while (bytes_checked + offset < _bytes_stored){