Skip to content

Commit

Permalink
More CI fixes to be WERROR clean
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Oct 31, 2023
1 parent 932d32b commit dd6c017
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ if (NOT EMSCRIPTEN)
endif()

if (ENABLE_WERROR)
append_target_property(mmseqs-framework COMPILE_FLAGS -Werror)
append_target_property(mmseqs-framework LINK_FLAGS -Werror)
append_target_property(mmseqs-framework COMPILE_FLAGS -Werror -Wno-unused-command-line-argument)
append_target_property(mmseqs-framework LINK_FLAGS -Werror -Wno-unused-command-line-argument)
endif()

# needed for concat.h
Expand Down
8 changes: 4 additions & 4 deletions src/test/TestAlignmentTraceback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ void sw(
// backtrace
int i=target_length - 1;
int j=query_length - 1;
int step = 0;
// int step = 0;
int state = get_val(bt, i, j);
int matched_cols = 0;
// int matched_cols = 0;
while (state!=-1) // while (state!=STOP) because STOP=0
{
step++;
// step++;
//std::cout << step<< " " << i << " " << j << " " << state << std::endl;
switch (state) {
case M: // current state is MM, previous state is bMM[i][j]
matched_cols++;
// matched_cols++;
fprintf(stdout,"%c", subMat.num2aa[db_sequence[target_start+i]]);
if(query_sequence[query_start + j] == db_sequence[target_start + i]){
fprintf(stdout, "|");
Expand Down
4 changes: 2 additions & 2 deletions src/test/TestKsw2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void align(const char * qSeqAscii, uint8_t *qseq, uint8_t *qseqrev, const int qL
std::string middleAln;
int queryPos = qStartPos;
int targetPos = tStartPos;
int aaIds = 0;
// int aaIds = 0;
for(int i = 0; i < ezAlign.n_cigar; i++){
int len = ezAlign.cigar[i]>>4;
switch("MID"[ezAlign.cigar[i]&0xf]){
Expand All @@ -264,7 +264,7 @@ void align(const char * qSeqAscii, uint8_t *qseq, uint8_t *qseqrev, const int qL
queryAln.push_back(qSeqAscii[queryPos]);
if (qSeqAscii[queryPos] == tSeqAscii[targetPos]) {
middleAln.push_back('|');
aaIds++;
// aaIds++;
} else {
middleAln.push_back('*');
}
Expand Down

0 comments on commit dd6c017

Please sign in to comment.