From 99f407f2466ef65d44224f3688f797c01ff406fa Mon Sep 17 00:00:00 2001 From: Andrea Zoli <zoli@iasfbo.inaf.it> Date: Wed, 21 Oct 2015 11:56:47 +0200 Subject: [PATCH] Remove unused variable warning. --- src/ByteStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ByteStream.cpp b/src/ByteStream.cpp index 491c52b..c5c1839 100644 --- a/src/ByteStream.cpp +++ b/src/ByteStream.cpp @@ -222,7 +222,7 @@ byte PacketLib::ByteStream::getByte( dword byteNumber) long PacketLib::ByteStream::getValue(dword start, word dim) { DEMORET0; - byte b1, b2; + byte b1, b2 = 0; if(start >= byteInTheStream) throw PacketException("PacketLib::ByteStream::getValue() start greater than the size of the ByteStream", 0); -- GitLab