Skip to content

Commit

Permalink
Fix compile errors when -DNDEBUG is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad0x00 committed Jan 12, 2022
1 parent 1bb8b30 commit 525f5b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion BloomDBG/bloom-dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ seedTypeStr(const SeedType& type)
break;
}
assert(false);
return "";
}

/**
Expand Down Expand Up @@ -288,6 +289,7 @@ readResultStr(const ReadResult& result)
break;
}
assert(false);
return "";
}

/**
Expand Down Expand Up @@ -460,7 +462,7 @@ printContig(
unsigned k,
std::ostream& out)
{
assert(seq.length() >= k);
assert(seq.length() >= k); (void)k;

FastaRecord contig;

Expand Down
1 change: 1 addition & 0 deletions Graph/ExtendPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ static inline const char* pathExtensionResultStr(PathExtensionResultCode result)
default:
assert(false);
}
return "";
}

/** length of path extension (in vertices) and reason for stopping */
Expand Down
2 changes: 1 addition & 1 deletion Konnector/konnector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ static inline string calcQual(const FastqRecord& orig,
unsigned extendedRight)
{
assert(extended.length() == orig.seq.length() +
extendedLeft + extendedRight);
extendedLeft + extendedRight); (void)extendedRight;

unsigned char correctedQual = opt::qualityOffset + opt::correctedQual;
string qual(extended.length(), correctedQual);
Expand Down

0 comments on commit 525f5b3

Please sign in to comment.