From 18b927bbb85dc029034d6b1f52c2efdc60a0e681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erlend=20H=C3=A5rstad?= Date: Thu, 8 Aug 2019 14:55:22 +0200 Subject: [PATCH] Remove unused variables --- bin/describe.cpp | 2 +- lib/src/dlisio.cpp | 4 ++-- lib/src/io.cpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/describe.cpp b/bin/describe.cpp index a23ba67a8..b0a332bcd 100644 --- a/bin/describe.cpp +++ b/bin/describe.cpp @@ -153,7 +153,7 @@ void describe( const char* fname ) { std::vector< char > buffer( 4096, 0 ); readf( buffer, 80, fp ); - int len = storage_unit_label( buffer.data() ); + storage_unit_label( buffer.data() ); for( int record = 0; ; record++ ) { readf( buffer, 4, fp ); diff --git a/lib/src/dlisio.cpp b/lib/src/dlisio.cpp index 3106a6821..c7d5eb309 100644 --- a/lib/src/dlisio.cpp +++ b/lib/src/dlisio.cpp @@ -388,7 +388,7 @@ int dlis_lrsh( const char* xs, std::uint8_t typ; xs = dlis_unorm( xs, &len ); xs = dlis_ushort( xs, &attr ); - xs = dlis_ushort( xs, &typ ); + dlis_ushort( xs, &typ ); *seglen = len; *attrs = attr; @@ -422,7 +422,7 @@ int dlis_encryption_packet_info( const char* xs, int* companycode ) { std::uint16_t ln, cc; xs = dlis_unorm( xs, &ln ); - xs = dlis_unorm( xs, &cc ); + dlis_unorm( xs, &cc ); /* * RP66 rqeuires there to be at least 4 bytes, which means the actual diff --git a/lib/src/io.cpp b/lib/src/io.cpp index 994ca9d6c..6e5d1b6bc 100644 --- a/lib/src/io.cpp +++ b/lib/src/io.cpp @@ -317,7 +317,6 @@ record& stream::at( int i, record& rec ) noexcept (false) { const auto vrl_len = remaining + len; const auto tell = std::int64_t(this->fs.tellg()) - DLIS_LRSH_SIZE; - consistent = false; const auto msg = "visible record/segment inconsistency: " "segment (which is {}) " ">= visible (which is {}) "