bcgsc / btllib

Bioinformatics Technology Lab common code library
Other
21 stars 5 forks source link

error: variable 'vals' set but not used [-Werror,-Wunused-but-set-variable] #110

Closed yurivict closed 2 weeks ago

yurivict commented 1 year ago
In file included from /usr/ports/biology/btllib/work/btllib-1.6.2/recipes/mi_bloom_filter.cpp:1:
In file included from ../include/btllib/mi_bloom_filter.hpp:12:
In file included from /usr/local/include/sdsl/bit_vector_il.hpp:25:
In file included from /usr/local/include/sdsl/int_vector.hpp:26:
/usr/local/include/sdsl/util.hpp:492:19: error: variable 'vals' set but not used [-Werror,-Wunused-but-set-variable]
    uint64_t n=0, vals=0;
                  ^
1 error generated.

Version: 1.6.2 clang-15 FreeBSD 13.2

jwcodee commented 1 year ago

Hi,

That should not be happening. The sdsl library is included via isystem which should suppress the warnings (see https://github.com/bcgsc/btllib/blob/master/meson.build#L60). Perhaps some settings on your end are overriding it.

lcoombe commented 2 weeks ago

Closing due to inactivity