Skip to content

Commit 0299ee4

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master'
2 parents be8dffc + 531b014 commit 0299ee4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ SUBDIRS= .
1818
ifeq ($(shell uname -s),Linux)
1919
LIBS += -lrt
2020
endif
21+
ifeq ($(shell uname -s),GNU/kFreeBSD)
22+
LIBS += -lrt
23+
endif
2124

2225
.SUFFIXES:.c .o .cc
2326

bwashm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <stdio.h>
1010
#include "bwa.h"
1111

12+
#ifndef PATH_MAX
13+
# define PATH_MAX 1024
14+
#endif
15+
1216
int bwa_shm_stage(bwaidx_t *idx, const char *hint, const char *_tmpfn)
1317
{
1418
const char *name;

bwt_gen.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
876876
bgint_t i, c;
877877
bgint_t s, r;
878878
bgint_t lastRank, lastIndex;
879-
bgint_t oldInverseSa0RelativeRank = 0;
880879
bgint_t freq;
881880

882881
lastIndex = numItem;
@@ -887,7 +886,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
887886
s = seq[numItem];
888887
relativeRank[s] = numItem;
889888
if (lastRank == oldInverseSa0) {
890-
oldInverseSa0RelativeRank = numItem;
891889
oldInverseSa0++; // so that this segment of code is not run again
892890
lastRank++; // so that oldInverseSa0 become a sorted group with 1 item
893891
}
@@ -920,7 +918,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
920918
lastRank = r;
921919
relativeRank[s] = i;
922920
if (r == oldInverseSa0) {
923-
oldInverseSa0RelativeRank = i;
924921
oldInverseSa0++; // so that this segment of code is not run again
925922
lastRank++; // so that oldInverseSa0 become a sorted group with 1 item
926923
}
@@ -950,15 +947,12 @@ static void BWTIncBuildBwt(unsigned int* insertBwt, const bgint_t *relativeRank,
950947
static void BWTIncMergeBwt(const bgint_t *sortedRank, const unsigned int* oldBwt, const unsigned int *insertBwt,
951948
unsigned int* __restrict mergedBwt, const bgint_t numOldBwt, const bgint_t numInsertBwt)
952949
{
953-
unsigned int bitsInWordMinusBitPerChar;
954950
bgint_t leftShift, rightShift;
955951
bgint_t o;
956952
bgint_t oIndex, iIndex, mIndex;
957953
bgint_t mWord, mChar, oWord, oChar;
958954
bgint_t numInsert;
959955

960-
bitsInWordMinusBitPerChar = BITS_IN_WORD - BIT_PER_CHAR;
961-
962956
oIndex = 0;
963957
iIndex = 0;
964958
mIndex = 0;

0 commit comments

Comments
 (0)