Skip to content

Commit

Permalink
Fix -Wunused-but-set-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapZA committed Dec 15, 2023
1 parent 2bd8699 commit 0ea2660
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/api/BamAlignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@ void BamAlignment::RemoveTag(const std::string& tag)
char* pOriginalTagData = (char*)TagData.data();
char* pTagData = pOriginalTagData;
const unsigned int originalTagDataLength = TagData.size();
unsigned int newTagDataLength = 0;
unsigned int numBytesParsed = 0;

// skip if tag not found
Expand All @@ -885,7 +884,6 @@ void BamAlignment::RemoveTag(const std::string& tag)
pTagData -= 3;
numBytesParsed -= 3;
const unsigned int beginningTagDataLength = numBytesParsed;
newTagDataLength += beginningTagDataLength;
std::memcpy(newTagData.Buffer, pOriginalTagData, numBytesParsed);

// attemp to skip to next tag
Expand Down
4 changes: 0 additions & 4 deletions src/utils/bamtools_fasta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename)
}

// iterate through fasta entries
int currentId = 0;
std::string header;
std::string sequence;
while (GetNextHeader(header)) {
Expand Down Expand Up @@ -207,9 +206,6 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename)

// store index entry
Index.push_back(data);

// update ref Id
++currentId;
}

// open index file
Expand Down

0 comments on commit 0ea2660

Please sign in to comment.