Skip to content

samtools: Enable -O0 compilation with C99 #6

Merged
merged 1 commit into from
Oct 9, 2017
Merged

samtools: Enable -O0 compilation with C99 #6

merged 1 commit into from
Oct 9, 2017

Commits on Oct 9, 2017

  1. samtools: Enable -O0 compilation with C99

    Compiling samtools with -O0 with gcc might generate an error because of
    undefined functions. With C99 an inline function which is neither
    declared static nor extern generates no callable function body. However
    the compiler is free to use the inline variant or the function body
    variant, which is undefined. -O0 forbids inline, so we get a link error.
    
    Add static keyword to inline functions, so that we can compile and link
    with -O0 for debugging.
    donald committed Oct 9, 2017
    Configuration menu
    Copy the full SHA
    568887f View commit details
    Browse the repository at this point in the history