Skip to content

Commit

Permalink
Fix travis failures with CFLAGS="-std=gnu99 -O0"
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 committed Mar 14, 2017
1 parent 425b8d4 commit 2809f59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/fixref.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int init(int argc, char **argv, bcf_hdr_t *in, bcf_hdr_t *out)
return 0;
}

bcf1_t *set_ref_alt(args_t *args, bcf1_t *rec, const char ref, const char alt, int swap)
static bcf1_t *set_ref_alt(args_t *args, bcf1_t *rec, const char ref, const char alt, int swap)
{
rec->d.allele[0][0] = ref;
rec->d.allele[1][0] = alt;
Expand Down Expand Up @@ -246,7 +246,7 @@ static inline int nt2int(char nt)
#define int2nt(x) "ACGT"[x]
#define revint(x) ("3210"[x]-'0')

inline uint32_t parse_rsid(char *name)
static inline uint32_t parse_rsid(char *name)
{
if ( name[0]!='r' || name[1]!='s' )
{
Expand All @@ -261,7 +261,7 @@ inline uint32_t parse_rsid(char *name)
return id;
}

int fetch_ref(args_t *args, bcf1_t *rec)
static int fetch_ref(args_t *args, bcf1_t *rec)
{
// Get the reference allele
int len;
Expand All @@ -281,7 +281,7 @@ int fetch_ref(args_t *args, bcf1_t *rec)
return ir;
}

void dbsnp_init(args_t *args, const char *chr)
static void dbsnp_init(args_t *args, const char *chr)
{
if ( args->i2m ) kh_destroy(i2m, args->i2m);
args->i2m = kh_init(i2m);
Expand Down Expand Up @@ -313,7 +313,7 @@ void dbsnp_init(args_t *args, const char *chr)
bcf_sr_destroy(sr);
}

bcf1_t *dbsnp_check(args_t *args, bcf1_t *rec, int ir, int ia, int ib)
static bcf1_t *dbsnp_check(args_t *args, bcf1_t *rec, int ir, int ia, int ib)
{
int k, ref,alt,pos;
uint32_t id = parse_rsid(rec->d.id);
Expand Down

0 comments on commit 2809f59

Please sign in to comment.