From 15438c8b8b79cd5b99484d669f3ce759c33addd3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 6 Jan 2019 02:13:02 +0100 Subject: [PATCH] pipe: removed unused variable --- src/villas-pipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/villas-pipe.cpp b/src/villas-pipe.cpp index 85d4dfe3a..b762c9955 100644 --- a/src/villas-pipe.cpp +++ b/src/villas-pipe.cpp @@ -138,14 +138,14 @@ static void * send_loop(void *ctx) Logger logger = logging.get("pipe"); unsigned last_sequenceno = 0, release; - int ret, scanned, sent, allocated, cnt = 0; + int scanned, sent, allocated, cnt = 0; struct sample *smps[dirs->send.node->out.vectorize]; while (!io_eof(dirs->send.io)) { allocated = sample_alloc_many(&dirs->send.pool, smps, dirs->send.node->out.vectorize); if (allocated < 0) - throw RuntimeError("Failed to get {} samples out of send pool ({}).", dirs->send.node->out.vectorize, ret); + throw RuntimeError("Failed to get {} samples out of send pool.", dirs->send.node->out.vectorize); else if (allocated < dirs->send.node->out.vectorize) logger->warn("Send pool underrun");