From e684704d4e553d1cf5635bdede0f9658e399fda1 Mon Sep 17 00:00:00 2001 From: amgross Date: Thu, 22 Feb 2024 13:39:44 +0200 Subject: [PATCH] Asign value to ptrSize, to avoid maybe-uninitialized warning --- erpc_c/infra/erpc_basic_codec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpc_c/infra/erpc_basic_codec.cpp b/erpc_c/infra/erpc_basic_codec.cpp index 6bdb68e3..656c228a 100644 --- a/erpc_c/infra/erpc_basic_codec.cpp +++ b/erpc_c/infra/erpc_basic_codec.cpp @@ -289,7 +289,7 @@ void BasicCodec::read(double &value) void BasicCodec::readPtr(uintptr_t &value) { - uint8_t ptrSize; + uint8_t ptrSize = 0; read(ptrSize);