samtools / htslib-plugins

Plugins for use with HTSlib
Other
9 stars 7 forks source link

clang compilation warning/error #1

Closed jrandall closed 6 years ago

jrandall commented 6 years ago

When compiling with clang, I get a warning (by default promoted to an error):

hfile_irods.c:149:23: warning: address of array 'irods.env.rodsHost' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (irods.env.rodsHost && irods.env.rodsPort)
            ~~~~~~~~~~^~~~~~~~ ~~