fix warnings emitted by clang