lh3 / seqtk

Toolkit for processing sequences in FASTA/Q formats
MIT License
1.37k stars 308 forks source link

gcc 5.3 warnings regarding static vs inline #72

Closed tseemann closed 8 years ago

tseemann commented 8 years ago

FYI GCC 5.3 on RHEL 7.x gives:

seqtk.c: In function 'stk_comp':
seqtk.c:386:16: warning: variable 'lc' set but not used [-Wunused-but-set-variable]
    int la, lb, lc, na, nb, nc, cnt[11];
                ^
seqtk.c: At top level:
seqtk.c:205:2: warning: 'stk_printseq_renamed' is static but used in inline function 'stk_printseq' which is not static
  stk_printseq_renamed(s, line_len, 0, -1);
  ^
lh3 commented 8 years ago

Fixed via 7d80910.