fix warnings reported by clang