Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ErlendHaa committed Sep 14, 2019
1 parent 8c082cd commit 18b927b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/describe.cpp
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions lib/src/dlisio.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/src/io.cpp
Expand Up @@ -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 {}) "
Expand Down

0 comments on commit 18b927b

Please sign in to comment.