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:
parent
ea1f8c3d51
commit
0aafb47dd2
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue