tlk00 / BitMagic

BitMagic Library
http://bitmagic.io
Other
412 stars 48 forks source link

bvector<>::{set,clear}_range_no_check: Formally pre-zero tmp_gap_blk. #33

Closed ucko closed 6 years ago

ucko commented 6 years ago

Reinstate the tmp_gap_blk initializer in set_range_no_check, and add an identical one in clear_range_no_check, to address errors when building with -Werror=maybe-uninitialized.

ucko commented 6 years ago

I reproduced the error, and can confirm that your minimal patch will suffice.

Thanks!