1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

redis: fix compiler warnings

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2023-04-03 13:04:21 +00:00 committed by Philipp Jungkamp
parent ea1f8c3d51
commit 0aafb47dd2

View file

@ -216,7 +216,7 @@ void redis_on_message(NodeCompat *n, const std::string &channel, const std::stri
n->logger->debug("Message: {}: {}", channel, msg);
int alloc, scanned, pushed;
int alloc, scanned, pushed = 0;
unsigned cnt = n->in.vectorize;
struct Sample *smps[cnt];
@ -247,7 +247,6 @@ void redis_on_message(NodeCompat *n, const std::string &channel, const std::stri
if (scanned < 0) {
n->logger->error("Failed to decode samples");
pushed = 0;
goto out;
}