Skip to content

Commit

Permalink
Fixing compilation issues with gcc10+
Browse files Browse the repository at this point in the history
  • Loading branch information
snehring committed May 11, 2022
1 parent 8357541 commit e855e47
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/inc/def.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#define int2compbase(seq) "TGAC"[seq]
#define int_comp(seq) (char)(seq^0x02) //(char)((0x4E>>((seq)<<1))&0x03)

int b_ban;

#ifdef MER127
typedef struct kmer
Expand Down
2 changes: 1 addition & 1 deletion src/inc/extvab.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ extern int delowArc;
extern int SupportNum;
extern int N_kmer;//mao 2011-10-13
extern int read_trace;//mao 2011-10-21
Kmer kmerZero;
extern Kmer kmerZero;

10 changes: 1 addition & 9 deletions src/inc/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,5 @@ int SupportNum=2;
int N_kmer=0;//mao 2011-10-13
int read_trace=0;//mao 2011-10-21

#ifdef MER127
Kmer kmerZero={0,0,0,0};
#endif
#ifdef MER63
Kmer kmerZero={0,0};
#endif
#ifdef MER31
Kmer kmerZero={0};
#endif
extern Kmer kmerZero;

10 changes: 10 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ static void display_usage ();
static void display_all_usage ();
static void pipeline (int argc, char **argv);

#ifdef MER127
Kmer kmerZero={0,0,0,0};
#endif
#ifdef MER63
Kmer kmerZero={0,0};
#endif
#ifdef MER31
Kmer kmerZero={0};
#endif

int main (int argc, char **argv)
{
printf ("\nVersion 1.04\n\n");
Expand Down

0 comments on commit e855e47

Please sign in to comment.